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 -------------- 8 files changed, 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 (limited to 'layouts/_default') 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 }} -- cgit v1.2.3