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.
18 lines
866 B
HTML
18 lines
866 B
HTML
{{/* section
|
|
label: Episodes
|
|
about: The latest podcast episodes, each with a player.
|
|
fields:
|
|
- { name: heading, type: text, default: Latest episodes }
|
|
- { name: collection, type: collection, default: episodes, label: Episodes from }
|
|
- { name: count, type: number, default: 3, label: How many }
|
|
*/}}
|
|
{{ $c := default "episodes" .Data.collection }}
|
|
<link rel="stylesheet" href="{{ asset "packs/podcast/podcast.css" }}">
|
|
<section class="block episodes">
|
|
<div class="wrap">
|
|
{{ with .Data.heading }}<h2>{{ . }}</h2>{{ end }}
|
|
<ul class="ep-list">{{ range limit (default 3 .Data.count) (collection $c) }}<li class="ep-item"><a class="ep-title" href="{{ .Href }}">{{ .Title }}</a>{{ with .Summary }}<p>{{ . }}</p>{{ end }}{{ template "episode-player" . }}</li>{{ end }}</ul>
|
|
<p><a class="more" href="/{{ $c }}/">Every episode</a></p>
|
|
</div>
|
|
</section>
|