From 63c7f85503c4a086820be5b2e3747c45fa4a4cde Mon Sep 17 00:00:00 2001 From: Stephen Siegert Date: Fri, 15 Feb 2019 15:27:30 -0500 Subject: standardize taxonomy term/page templates --- layouts/_default/terms.html | 41 +++++++++++++++++++++++++++++++++++++++++ layouts/taxonomy/category.html | 38 ++++++++++++++++++++++++++++++++++++++ layouts/taxonomy/tag.html | 38 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 117 insertions(+) create mode 100644 layouts/_default/terms.html create mode 100644 layouts/taxonomy/category.html create mode 100644 layouts/taxonomy/tag.html diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html new file mode 100644 index 0000000..72ac021 --- /dev/null +++ b/layouts/_default/terms.html @@ -0,0 +1,41 @@ +{{ partial "header.html" . }} + + / + {{ .Site.Title }} + / + + {{ lower .Title }} + +
+
+
    + + {{ range .Pages }} + {{ if ne .Title "" }} +
  • + {{ .Title }} + last seen {{ .Date.Format "January 2, 2006" }} +
  • + + {{ end }} + + {{ end }} +
+
+
+ + {{ partial "footer.html" . }} + diff --git a/layouts/taxonomy/category.html b/layouts/taxonomy/category.html new file mode 100644 index 0000000..c484cba --- /dev/null +++ b/layouts/taxonomy/category.html @@ -0,0 +1,38 @@ +{{ partial "header.html" . }} + + / + {{ .Site.Title }} + / + categories + / + + {{ .Title | lower }} + +
+
+
    + + {{ range .Data.Pages.ByPublishDate }} +
  • + {{ .Title }} + {{ .Date.Format "January 2, 2006" }} +
  • + + {{ end }} +
+
+
+ + {{ partial "footer.html" . }} + diff --git a/layouts/taxonomy/tag.html b/layouts/taxonomy/tag.html new file mode 100644 index 0000000..f97a21a --- /dev/null +++ b/layouts/taxonomy/tag.html @@ -0,0 +1,38 @@ +{{ partial "header.html" . }} + + / + {{ .Site.Title }} + / + tags + / + + {{ .Title | lower }} + +
+
+
    + + {{ range .Data.Pages.ByPublishDate }} +
  • + {{ .Title }} + {{ .Date.Format "January 2, 2006" }} +
  • + + {{ end }} +
+
+
+ + {{ partial "footer.html" . }} + -- cgit v1.2.3