From 0703a10e2c97bdce5fe8c2d83ce977b015bc68b2368eb43c3b3bdbc21d588155 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson <> Date: Fri, 18 Sep 2026 00:00:00 +0000 Subject: Add section templates Every build logged "found no layout file for html for kind section", and the section URL that Hugo generates for the entry directory was rendered as an empty page in both output formats. The warning was left for each site using the theme to work around. List the section's pages the way the term templates do, and link the section feed when the site configures one. Co-Authored-By: Claude Opus 5 --- layouts/section.gmi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 layouts/section.gmi (limited to 'layouts/section.gmi') diff --git a/layouts/section.gmi b/layouts/section.gmi new file mode 100644 index 0000000..2bfee90 --- /dev/null +++ b/layouts/section.gmi @@ -0,0 +1,22 @@ +{{ define "main" -}} +=> {{ .Site.Home.RelPermalink | strings.TrimSuffix "index.gmi" }} {{ emojify ":link:" }} {{ i18n "returnHome" }} + + +# {{ .Title }} +{{- with .OutputFormats.Get "Gemini_Atom" }} + + +## {{ i18n "feeds" }} + +=> {{ .RelPermalink }} {{ emojify ":link:" }} {{ i18n "atomFeed" }} +{{- end }} +{{- with .Pages.ByPublishDate.Reverse }} + + +## {{ i18n "journalEntries" -}} +{{ range . }} + +{{ partial "metadata.gmi" . -}} +{{ end -}} +{{ end -}} +{{ end }} -- cgit v1.2.3