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.
8 lines
601 B
CSS
8 lines
601 B
CSS
/* The related posts pack. Colors come from the theme's variables. */
|
|
.related { margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
|
|
.related h2 { margin: 0 0 14px; font-size: 1.25rem; }
|
|
.related-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
|
|
.related-list li { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
|
|
.related-list a { font-weight: 650; }
|
|
.related-list p { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }
|