From 1e8979e8400efefc3afcfc9eba1dea0f1a38f75b Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Sun, 3 Mar 2024 15:00:03 -0600 Subject: [PATCH] gemini: generate taxonomy pages --- config/_default/hugo.toml | 2 +- layouts/_default/list.gmi | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 layouts/_default/list.gmi diff --git a/config/_default/hugo.toml b/config/_default/hugo.toml index b864e69..95426b9 100644 --- a/config/_default/hugo.toml +++ b/config/_default/hugo.toml @@ -19,7 +19,7 @@ enableInlineShortcodes = true home = ['html', 'rss', 'gemini'] section = ['html'] taxonomy = ['html'] - term = ['html', 'rss'] + term = ['html', 'rss', 'gemini'] page = ['html', 'rss', 'gemini'] # rename rss output from index.xml to feed.xml diff --git a/layouts/_default/list.gmi b/layouts/_default/list.gmi new file mode 100644 index 0000000..b138156 --- /dev/null +++ b/layouts/_default/list.gmi @@ -0,0 +1,10 @@ +=> / 💻 [runtimeterror $] +# {{ .Title }} + +{{- range .Pages }} +=> {{ .RelPermalink }} {{ .Date.Format "2006-01-02" }} {{ .Title }} +{{- end }} + +--- +=> / Home +=> https://runtimeterror.dev{{ replace (replace .RelPermalink "/gemini" "" 1) "index.gmi" "" }} This article on the big web \ No newline at end of file