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.
31 lines
1.1 KiB
YAML
31 lines
1.1 KiB
YAML
name: reviews
|
|
version: 1.0.0
|
|
title: Reviews
|
|
description: Star ratings from customers, with the average and how many, as a section or under a product.
|
|
license: MIT
|
|
author: Coffey Labs LLC
|
|
notes: |
|
|
Add a "Reviews" section to any page, in the editor's section library or
|
|
in the page's front matter:
|
|
|
|
sections:
|
|
- reviews:
|
|
heading: What customers say
|
|
items:
|
|
- name: Maria Lopez
|
|
rating: 5
|
|
date: 2026-09-14
|
|
text: The best sourdough in town.
|
|
source: Google
|
|
|
|
rating is 1 to 5. To share reviews between pages, put them in
|
|
data/reviews.yaml (a list like the one above) and set from: reviews.
|
|
|
|
For a product (the shop pack), list its reviews as reviews: in the
|
|
product's front matter and add {{ template "reviews" . }} to
|
|
layouts/product.html. Search engines then get the product's rating
|
|
(AggregateRating). Reviews of the business itself get no search-engine
|
|
data: search engines ignore a business's ratings on its own site.
|
|
|
|
Only publish reviews people really wrote, with their permission.
|