From c82358641f717d452f40e5c23268775898ea963d Mon Sep 17 00:00:00 2001 From: tsmitty11 Date: Thu, 18 May 2023 13:05:33 +0200 Subject: [PATCH] Layouts for cats/tags --- src/content/categories/_index.md | 3 +++ src/content/tags/_index.md | 3 +++ src/layouts/_default/taxonomyTerm.html | 20 ++++++++++++++++++++ src/layouts/taxonomy/taxonomy.html | 21 +++++++++++++++++++++ 4 files changed, 47 insertions(+) create mode 100644 src/layouts/_default/taxonomyTerm.html create mode 100644 src/layouts/taxonomy/taxonomy.html diff --git a/src/content/categories/_index.md b/src/content/categories/_index.md index e69de29..c59a39d 100644 --- a/src/content/categories/_index.md +++ b/src/content/categories/_index.md @@ -0,0 +1,3 @@ +--- +title: Categories +--- diff --git a/src/content/tags/_index.md b/src/content/tags/_index.md index e69de29..56d2e29 100644 --- a/src/content/tags/_index.md +++ b/src/content/tags/_index.md @@ -0,0 +1,3 @@ +--- +title: Tags +--- diff --git a/src/layouts/_default/taxonomyTerm.html b/src/layouts/_default/taxonomyTerm.html new file mode 100644 index 0000000..7d2db5f --- /dev/null +++ b/src/layouts/_default/taxonomyTerm.html @@ -0,0 +1,20 @@ + + +{{ partial "head.html" . }} + +{{ partial "navbar.html" . }} +
+
+

{{ .Title }}

+ {{ range .Pages }} +

{{ .Title }}

+ + {{ end }} +
+
+ + + diff --git a/src/layouts/taxonomy/taxonomy.html b/src/layouts/taxonomy/taxonomy.html new file mode 100644 index 0000000..98cc608 --- /dev/null +++ b/src/layouts/taxonomy/taxonomy.html @@ -0,0 +1,21 @@ + + +{{ partial "head.html" . }} + +{{ partial "navbar.html" . }} +
+
+

{{ .Title }}

+
    + {{ range .Data.Terms.Alphabetical }} +
  • {{ .Page.Title }} ({{ .Count }})
  • + {{ end }} +
+
+
+ + +