From 9bb9989fca490bfac69ea4387ccae1e9ec3ec23cf7f47a401e241ee43562f8a3 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson <> Date: Sat, 26 Jul 2025 00:00:00 +0000 Subject: Migrate fully to Hugo's new template system This was the only way I could get term pages to consistently render correctly. --- layouts/taxonomy.gmi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 layouts/taxonomy.gmi (limited to 'layouts/taxonomy.gmi') diff --git a/layouts/taxonomy.gmi b/layouts/taxonomy.gmi new file mode 100644 index 0000000..9c2a9f0 --- /dev/null +++ b/layouts/taxonomy.gmi @@ -0,0 +1,17 @@ +{{ define "main" -}} +=> {{ .Site.Home.RelPermalink | strings.TrimSuffix "index.gmi" }} {{ emojify ":link:" }} {{ i18n "returnHome" }} + + +# {{ .Type | humanize }} + + +## {{ i18n "feeds" }} + +=> {{ .RelPermalink | replaceRE `index.gmi$` "atom.xml" }} {{ emojify ":link:" }} {{ i18n "atomFeed" }} + + +## {{ i18n "list" }} +{{ range .Data.Pages }} +=> {{ .RelPermalink | strings.TrimSuffix "index.gmi" }} {{ emojify ":link:" }} {{ .Title -}} +{{ end -}} +{{ end }} \ No newline at end of file -- cgit v1.2.3