contact-forms brings a quote request, a booking request and a mailing list sign-up, and a Contact form section that shows any form beside an email, phone, address and a note. tables shows a table from a spreadsheet saved as CSV (or YAML or JSON) in data/, with a caption, row headings, numbers on the right, and sideways scrolling on phones. changelog gives a page per release, every release on one page, a feed, a What's new section and a latest-release partial; notes grouped under Keep a Changelog headings show as labels. To make them possible: - data/*.csv files load as rows of cells, for the data function and the editor's data picker. - Packs can bring forms (forms/<name>.yaml). A form is copied once and is the site's own from then on: upgrades and removal leave it, and a site's own form of that name is kept. A pack's form must send to a placeholder address (example.org and the other RFC 2606 names) and can't set Turnstile, so a pack can't route a site's submissions or add another site's script. - A new check warning, form-placeholder, for forms that still send to or show a placeholder address (the starter's contact form does until it's set). - A form's success path can no longer start with // or /\, which browsers treat as another site.
32 lines
1.2 KiB
YAML
32 lines
1.2 KiB
YAML
name: contact-forms
|
|
version: 1.0.0
|
|
title: Contact forms
|
|
description: Ready-made forms for a quote, a booking and a mailing list, and a section that puts any form beside your email, phone and address.
|
|
license: MIT
|
|
author: Coffey Labs LLC
|
|
notes: |
|
|
The forms are in forms/: quote.yaml, booking.yaml and signup.yaml. They're
|
|
your site's own now, so change them as you like (in the files, or the
|
|
editor's Forms page). First, set each one's to: and mailto: to your own
|
|
address. They send to [email protected] until you do, and hotdog-cms check
|
|
warns about it.
|
|
|
|
Then add a "Contact form" section to a page, in the editor's section
|
|
library or in the page's front matter:
|
|
|
|
sections:
|
|
- contact-form:
|
|
heading: Ask for a quote
|
|
form: quote
|
|
email: [email protected]
|
|
phone: (217) 555-0142
|
|
note: We answer within one working day.
|
|
|
|
form: is the name of any form in forms/, including the contact form your
|
|
site started with. Forms are sent by the endpoint (hotdog-cms endpoint);
|
|
see docs/forms.md.
|
|
|
|
The sign-up form emails you each new address. To keep a list in a file as
|
|
well, set store: true in forms/signup.yaml and give the endpoint a store
|
|
folder. Say in your privacy notice what you do with the addresses.
|