reviews (star ratings with the average, as a section or under a product, which then gets AggregateRating), glossary (A to Z with a letter row, each term linkable, DefinedTermSet), logo-wall (a still grid, muted logos become light outlines in dark mode, white tiles on request), videos (a library from your own files: page per video with captions and transcript, list, feed, Latest videos section, VideoObject), directory (entries grouped by category with a page each), link-in-bio (one page of big buttons, no menu), status-page (components from data/status.yaml, incidents with a feed), coming-soon (a holding page with a launch date and a form, no menu) and timeline (dates down a line). Template functions: sortBy, ratings and stars. formatDate takes a date with a time, as front matter's date: does, and now is in the site's timezone. A layout can leave out the site's menu by redefining nav, but only with a non-empty body: Go keeps the old template when the new one is empty.
34 lines
935 B
YAML
34 lines
935 B
YAML
name: directory
|
|
version: 1.0.0
|
|
title: Directory
|
|
description: A listing of businesses, members or places, grouped by category, with a page each.
|
|
license: MIT
|
|
author: Coffey Labs LLC
|
|
collections:
|
|
directory:
|
|
layout: listing
|
|
list_layout: directory
|
|
sort: title
|
|
paginate: 0
|
|
notes: |
|
|
Add each entry as content/directory/<name>.md:
|
|
|
|
---
|
|
title: Main Street Books
|
|
summary: New and used books, and a reading corner for kids.
|
|
category: Shops
|
|
address: |
|
|
40 Main Street
|
|
Springfield, IL 62701
|
|
phone: (217) 555-0170
|
|
email: [email protected]
|
|
website: https://example.com
|
|
logo: /media/main-street-books.webp
|
|
---
|
|
More about them.
|
|
|
|
/directory/ lists every entry, A to Z within each category, with a row
|
|
of categories at the top to jump with. Entries without a category go
|
|
under Other, at the end. Give the list a title and an
|
|
introduction in content/directory/_index.md.
|