From 1147a663e70aadb2578cbe601bc723d7cd939c5a Mon Sep 17 00:00:00 2001 From: aethrvmn Date: Sat, 30 Aug 2025 15:17:32 +0200 Subject: added non-content --- themes/hugo-book/layouts/taxonomy/list.html | 13 +++++++++++++ themes/hugo-book/layouts/taxonomy/taxonomy.html | 22 ++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 themes/hugo-book/layouts/taxonomy/list.html create mode 100644 themes/hugo-book/layouts/taxonomy/taxonomy.html (limited to 'themes/hugo-book/layouts/taxonomy') diff --git a/themes/hugo-book/layouts/taxonomy/list.html b/themes/hugo-book/layouts/taxonomy/list.html new file mode 100644 index 0000000..1d3e763 --- /dev/null +++ b/themes/hugo-book/layouts/taxonomy/list.html @@ -0,0 +1,13 @@ +{{ define "main" }} +
+

{{ .Title | title }}

+ {{ $taxonomies := index .Site.Taxonomies .Page.Type }} + {{ range $taxonomies }} +
{{ .Page.Title }} {{ .Count }}
+ {{ end }} +
+{{ end }} + +{{ define "toc" }} + {{ partial "docs/taxonomy" . }} +{{ end }} diff --git a/themes/hugo-book/layouts/taxonomy/taxonomy.html b/themes/hugo-book/layouts/taxonomy/taxonomy.html new file mode 100644 index 0000000..badf0f6 --- /dev/null +++ b/themes/hugo-book/layouts/taxonomy/taxonomy.html @@ -0,0 +1,22 @@ +{{ define "main" }} + {{ range sort .Paginator.Pages }} +
+

+ {{ partial "docs/title.html" . }} +

+ {{ partial "docs/post-meta" . }} +

+ {{- .Summary -}} + {{ if .Truncated }} + ... + {{ end }} +

+
+ {{ end }} + + {{ template "_internal/pagination.html" . }} +{{ end }} + +{{ define "toc" }} + {{ partial "docs/taxonomy" . }} +{{ end }} -- cgit v1.2.3