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/_default/taxonomy.atom.xml | 22 ---------------------- layouts/_default/taxonomy.gemini_atom.xml | 21 --------------------- layouts/_default/taxonomy.gmi | 13 ------------- layouts/_default/taxonomy.html | 16 ---------------- layouts/_default/term.atom.xml | 22 ---------------------- layouts/_default/term.gemini_atom.xml | 21 --------------------- layouts/_default/term.gmi | 19 ------------------- layouts/_default/term.html | 14 -------------- layouts/taxonomy/taxonomy.atom.xml | 22 ++++++++++++++++++++++ layouts/taxonomy/taxonomy.gemini_atom.xml | 21 +++++++++++++++++++++ layouts/taxonomy/taxonomy.gmi | 13 +++++++++++++ layouts/taxonomy/taxonomy.html | 16 ++++++++++++++++ layouts/term/term.atom.xml | 22 ++++++++++++++++++++++ layouts/term/term.gemini_atom.xml | 21 +++++++++++++++++++++ layouts/term/term.gmi | 19 +++++++++++++++++++ layouts/term/term.html | 14 ++++++++++++++ 16 files changed, 148 insertions(+), 148 deletions(-) delete mode 100644 layouts/_default/taxonomy.atom.xml delete mode 100644 layouts/_default/taxonomy.gemini_atom.xml delete mode 100644 layouts/_default/taxonomy.gmi delete mode 100644 layouts/_default/taxonomy.html delete mode 100644 layouts/_default/term.atom.xml delete mode 100644 layouts/_default/term.gemini_atom.xml delete mode 100644 layouts/_default/term.gmi delete mode 100644 layouts/_default/term.html 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 create mode 100644 layouts/term/term.atom.xml create mode 100644 layouts/term/term.gemini_atom.xml create mode 100644 layouts/term/term.gmi create mode 100644 layouts/term/term.html (limited to 'layouts') diff --git a/layouts/_default/taxonomy.atom.xml b/layouts/_default/taxonomy.atom.xml deleted file mode 100644 index c0c9f6e..0000000 --- a/layouts/_default/taxonomy.atom.xml +++ /dev/null @@ -1,22 +0,0 @@ -{{ "" | 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/_default/taxonomy.gemini_atom.xml b/layouts/_default/taxonomy.gemini_atom.xml deleted file mode 100644 index 85ff034..0000000 --- a/layouts/_default/taxonomy.gemini_atom.xml +++ /dev/null @@ -1,21 +0,0 @@ -{{ "" | 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/_default/taxonomy.gmi b/layouts/_default/taxonomy.gmi deleted file mode 100644 index 56b53a9..0000000 --- a/layouts/_default/taxonomy.gmi +++ /dev/null @@ -1,13 +0,0 @@ -{{ 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/_default/taxonomy.html b/layouts/_default/taxonomy.html deleted file mode 100644 index a3a22a7..0000000 --- a/layouts/_default/taxonomy.html +++ /dev/null @@ -1,16 +0,0 @@ -{{ define "main" -}} - -
-

{{ .Type | humanize }}

-

Feeds

-

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

-

List

- -
-{{- end }} diff --git a/layouts/_default/term.atom.xml b/layouts/_default/term.atom.xml deleted file mode 100644 index c0c9f6e..0000000 --- a/layouts/_default/term.atom.xml +++ /dev/null @@ -1,22 +0,0 @@ -{{ "" | 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/_default/term.gemini_atom.xml b/layouts/_default/term.gemini_atom.xml deleted file mode 100644 index 85ff034..0000000 --- a/layouts/_default/term.gemini_atom.xml +++ /dev/null @@ -1,21 +0,0 @@ -{{ "" | 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/_default/term.gmi b/layouts/_default/term.gmi deleted file mode 100644 index 4beb9ea..0000000 --- a/layouts/_default/term.gmi +++ /dev/null @@ -1,19 +0,0 @@ -{{ define "main" -}} -=> / {{ emojify ":link:" | safeHTML }} Return to homepage - - -# {{ .Type | singularize | humanize | safeHTML }} "{{ .Title | safeHTML }}" -## Feeds -=> {{ .RelPermalink | replaceRE `(?m)index.gmi$` "atom.xml" | safeHTML }} {{ emojify ":link:" | safeHTML }} Atom Feed - -## Journal Entries -{{ $entriesMinusOne := sub (len (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse) 1 }} -{{- range first $entriesMinusOne .Data.Pages.ByPublishDate.Reverse }} -{{- partial "metadata.gmi" . }} -{{ end }} -{{- if gt (len .Data.Pages) 1 }} - -{{- range last 1 .Data.Pages.ByPublishDate.Reverse }} -{{- partial "metadata.gmi" . }}{{ end }} -{{- end }} -{{- end }} diff --git a/layouts/_default/term.html b/layouts/_default/term.html deleted file mode 100644 index 4b69ebe..0000000 --- a/layouts/_default/term.html +++ /dev/null @@ -1,14 +0,0 @@ -{{ define "main" -}} - -
-

{{ .Type | singularize | humanize }} "{{ .Title }}"

-

Feeds

-

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

-

Journal Entries

- {{- range .Data.Pages.ByPublishDate.Reverse }} - {{ partial "metadata.html" . -}} - {{- end -}} -
-{{- end }} 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 }} diff --git a/layouts/term/term.atom.xml b/layouts/term/term.atom.xml new file mode 100644 index 0000000..c0c9f6e --- /dev/null +++ b/layouts/term/term.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/term/term.gemini_atom.xml b/layouts/term/term.gemini_atom.xml new file mode 100644 index 0000000..85ff034 --- /dev/null +++ b/layouts/term/term.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/term/term.gmi b/layouts/term/term.gmi new file mode 100644 index 0000000..4beb9ea --- /dev/null +++ b/layouts/term/term.gmi @@ -0,0 +1,19 @@ +{{ define "main" -}} +=> / {{ emojify ":link:" | safeHTML }} Return to homepage + + +# {{ .Type | singularize | humanize | safeHTML }} "{{ .Title | safeHTML }}" +## Feeds +=> {{ .RelPermalink | replaceRE `(?m)index.gmi$` "atom.xml" | safeHTML }} {{ emojify ":link:" | safeHTML }} Atom Feed + +## Journal Entries +{{ $entriesMinusOne := sub (len (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse) 1 }} +{{- range first $entriesMinusOne .Data.Pages.ByPublishDate.Reverse }} +{{- partial "metadata.gmi" . }} +{{ end }} +{{- if gt (len .Data.Pages) 1 }} + +{{- range last 1 .Data.Pages.ByPublishDate.Reverse }} +{{- partial "metadata.gmi" . }}{{ end }} +{{- end }} +{{- end }} diff --git a/layouts/term/term.html b/layouts/term/term.html new file mode 100644 index 0000000..4b69ebe --- /dev/null +++ b/layouts/term/term.html @@ -0,0 +1,14 @@ +{{ define "main" -}} + +
+

{{ .Type | singularize | humanize }} "{{ .Title }}"

+

Feeds

+

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

+

Journal Entries

+ {{- range .Data.Pages.ByPublishDate.Reverse }} + {{ partial "metadata.html" . -}} + {{- end -}} +
+{{- end }} -- cgit v1.2.3