From 05100679e29801c14916b7372d6f6518c65748e1 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Fri, 12 Nov 2021 23:14:13 -0600 Subject: [PATCH] Support descriptions for taxonomies --- archetypes/authors/_index.md | 8 ++++++++ archetypes/series/_index.md | 8 ++++++++ archetypes/tags/_index.md | 8 ++++++++ layouts/taxonomy/list.html | 6 ++++++ 4 files changed, 30 insertions(+) create mode 100644 archetypes/authors/_index.md create mode 100644 archetypes/series/_index.md create mode 100644 archetypes/tags/_index.md diff --git a/archetypes/authors/_index.md b/archetypes/authors/_index.md new file mode 100644 index 0000000..17f8404 --- /dev/null +++ b/archetypes/authors/_index.md @@ -0,0 +1,8 @@ +--- + +title: {{ replace .Name "-" " " | title }} + +description: >- + A short description about the author. + +--- diff --git a/archetypes/series/_index.md b/archetypes/series/_index.md new file mode 100644 index 0000000..2162c2a --- /dev/null +++ b/archetypes/series/_index.md @@ -0,0 +1,8 @@ +--- + +title: {{ replace .Name "-" " " | title }} + +description: >- + Some information about the series. + +--- diff --git a/archetypes/tags/_index.md b/archetypes/tags/_index.md new file mode 100644 index 0000000..ca29993 --- /dev/null +++ b/archetypes/tags/_index.md @@ -0,0 +1,8 @@ +--- + +title: {{ replace .Name "-" " " | title }} + +description: >- + A description of what the tag is. + +--- diff --git a/layouts/taxonomy/list.html b/layouts/taxonomy/list.html index 0b96d85..dc2abc6 100644 --- a/layouts/taxonomy/list.html +++ b/layouts/taxonomy/list.html @@ -34,6 +34,12 @@ {{ else }} +{{ with .Description }} +
+

{{ . | markdownify }}

+
+{{ end }} + {{ $items := .Paginator.Pages }} {{ if eq .Data.Singular "series" }} {{ $items = .Paginator.Pages.Reverse }}