From b5c3919fe891a965b0051b0ea10f3121d049b34080165f95b92a65e739526c5c Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Sat, 25 Feb 2023 00:00:00 +0000 Subject: Organize layouts --- layouts/taxonomy/taxonomy.atom.xml | 22 ++++++++++++++++++++++ layouts/taxonomy/taxonomy.gemini_atom.xml | 21 +++++++++++++++++++++ layouts/taxonomy/taxonomy.gmi | 13 +++++++++++++ layouts/taxonomy/taxonomy.html | 16 ++++++++++++++++ 4 files changed, 72 insertions(+) create mode 100644 layouts/taxonomy/taxonomy.atom.xml create mode 100644 layouts/taxonomy/taxonomy.gemini_atom.xml create mode 100644 layouts/taxonomy/taxonomy.gmi create mode 100644 layouts/taxonomy/taxonomy.html (limited to 'layouts/taxonomy') diff --git a/layouts/taxonomy/taxonomy.atom.xml b/layouts/taxonomy/taxonomy.atom.xml new file mode 100644 index 0000000..c0c9f6e --- /dev/null +++ b/layouts/taxonomy/taxonomy.atom.xml @@ -0,0 +1,22 @@ +{{ "" | safeHTML }} + + {{ .Permalink }} + {{ .Site.Title }} + {{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }} + + + + {{ .Site.Author.name }} + {{ .Site.Author.email }} + + Hugo -- gohugo.io + {{ replace .Site.Copyright "{currentYear}" (now.Format "2006") }} + {{ .Site.Params.Description }}{{ range first .Site.Config.Services.RSS.Limit .Data.Pages }} + + {{ .Permalink }} + {{ .Title }} + {{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }} + + {{ .Content | html }} + {{ end }} + diff --git a/layouts/taxonomy/taxonomy.gemini_atom.xml b/layouts/taxonomy/taxonomy.gemini_atom.xml new file mode 100644 index 0000000..85ff034 --- /dev/null +++ b/layouts/taxonomy/taxonomy.gemini_atom.xml @@ -0,0 +1,21 @@ +{{ "" | safeHTML }} + + {{ replace .Permalink "https://" "gemini://" }} + {{ .Site.Title }} + {{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }} + + + + {{ .Site.Author.name }} + {{ .Site.Author.email }} + + Hugo -- gohugo.io + {{ replace .Site.Copyright "{currentYear}" (now.Format "2006") }} + {{ .Site.Params.Description }}{{ range first .Site.Config.Services.RSS.Limit .Data.Pages }} + + {{ replace .Permalink "https://" "gemini://" | safeURL }} + {{ .Title }} + {{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }} + + {{ end }} + diff --git a/layouts/taxonomy/taxonomy.gmi b/layouts/taxonomy/taxonomy.gmi new file mode 100644 index 0000000..56b53a9 --- /dev/null +++ b/layouts/taxonomy/taxonomy.gmi @@ -0,0 +1,13 @@ +{{ define "main" -}} +=> / {{ emojify ":link:" | safeHTML }} Return to homepage + + +# {{ .Type | humanize }} +## Feeds +=> {{ .RelPermalink | replaceRE `(?m)index.gmi$` "atom.xml" | safeHTML }} {{ emojify ":link:" | safeHTML }} Atom Feed + +## List +{{- range .Data.Pages }} +=> {{ .RelPermalink | replaceRE `(?m)index.gmi$` "" }} {{ emojify ":link:" | safeHTML }} {{ .Title | safeHTML }} +{{- end }} +{{- end }} diff --git a/layouts/taxonomy/taxonomy.html b/layouts/taxonomy/taxonomy.html new file mode 100644 index 0000000..a3a22a7 --- /dev/null +++ b/layouts/taxonomy/taxonomy.html @@ -0,0 +1,16 @@ +{{ define "main" -}} + +
+

{{ .Type | humanize }}

+

Feeds

+

{{ emojify ":link:" | safeHTML }} Atom Feed

+

List

+ +
+{{- end }} -- cgit v1.2.3