Files
jcoffey-dev 23e6ea4e44
ci / editor-ui (pull_request) Successful in 1m19s
ci / go (pull_request) Successful in 1m20s
Six more packs, search-engine data, podcast feeds
Packs: jobs, payment-links, podcast, recipes, related-posts, table-of-contents.

Engine, for what packs can't carry:
- pageData: schema.org objects for what packs put on a page (FAQPage from faq sections, LocalBusiness from location, Person, Recipe and JobPosting by layout). The starter's partials/schema.html writes them; older sites can add the same two lines.
- feed_format: podcast: RSS with the iTunes fields, each episode's audio as an enclosure with its real size (podcast_category, podcast_email, podcast_explicit).
- closed: whether a date (a job's closes:) is over in the site's time zone. Closed openings leave lists and aren't advertised to search engines.
- related: pages in the same collection sharing the most tags.
- headings: a rendered page's h2 and h3 headings, for a table of contents.
- formatDate takes a date YAML already parsed (closes: 2026-11-15).

The bundled-packs test covers all seventeen, including the structured data, a closed job, the podcast feed, related posts and the table of contents.
2026-10-11 17:23:44 -07:00

28 lines
1.2 KiB
HTML

{{/* section
label: Donate
about: One call to give, with a button to your donation page.
fields:
- { name: heading, type: text, default: Support our work, required: true }
- { name: text, type: markdown, help: What a gift pays for. }
- { name: link, type: link, required: true, label: Donation link, help: "Liberapay, Open Collective, Ko-fi, a Stripe Payment Link, PayPal.me…" }
- { name: button, type: text, default: Donate }
- name: amounts
type: list
label: Suggested amounts
help: "Optional buttons with their own links, such as $5, $25 and $100."
fields:
- { name: label, type: text, required: true }
- { name: link, type: link, required: true }
*/}}
<link rel="stylesheet" href="{{ asset "packs/payment-links/payment.css" }}">
<section class="block donate">
<div class="wrap donate-box">
<h2>{{ .Data.heading }}</h2>
{{ with .Data.text }}<div class="donate-text">{{ markdownify . }}</div>{{ end }}
<p class="donate-actions">
{{ range .Data.amounts }}<a class="btn" href="{{ .link }}" rel="noopener">{{ .label }}</a> {{ end }}
<a class="btn primary" href="{{ .Data.link }}" rel="noopener">{{ default "Donate" .Data.button }}</a>
</p>
</div>
</section>