From 474fde6093b4f79fa7bcaa91d5253fb36ddce823 Mon Sep 17 00:00:00 2001 From: tsmitty11 Date: Thu, 18 May 2023 13:25:41 +0200 Subject: [PATCH] Single page template for cats/tags --- src/layouts/_default/list.html | 6 +++--- src/layouts/categories/single.html | 23 +++++++++++++++++++++++ src/layouts/taxonomy/taxonomy.html | 2 +- 3 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 src/layouts/categories/single.html diff --git a/src/layouts/_default/list.html b/src/layouts/_default/list.html index 948aaae..04d47ff 100644 --- a/src/layouts/_default/list.html +++ b/src/layouts/_default/list.html @@ -33,9 +33,9 @@ {{ end }}

{{ .Title }}

- {{ .Date.Format "2006-01-02" }} - Categories: {{ range .Params.categories }}{{ . }}, {{ end }} - {{ .Content }} + Published {{ .Date.Format "02/01/2006" }}
+ Categories: {{ range .Params.categories }}{{ . }}, {{ end }} + {{ .Content }}
diff --git a/src/layouts/categories/single.html b/src/layouts/categories/single.html new file mode 100644 index 0000000..c26379d --- /dev/null +++ b/src/layouts/categories/single.html @@ -0,0 +1,23 @@ + + +{{ partial "head.html" . }} + +{{ partial "navbar.html" . }} +
+
+

Category: {{ .Title }}

+
    + {{ range .Site.RegularPages }} + {{ if in .Params.categories .Title }} +
  • {{ .Title }}
  • + {{ end }} + {{ end }} +
+
+
+ + + diff --git a/src/layouts/taxonomy/taxonomy.html b/src/layouts/taxonomy/taxonomy.html index 98cc608..6c6e799 100644 --- a/src/layouts/taxonomy/taxonomy.html +++ b/src/layouts/taxonomy/taxonomy.html @@ -4,7 +4,7 @@ {{ partial "navbar.html" . }}
-
+

{{ .Title }}

    {{ range .Data.Terms.Alphabetical }}