From c2ef59eaa5bd31e1c44b24a91360ea1a78bdabe5 Mon Sep 17 00:00:00 2001 From: jk Date: Fri, 19 Jun 2020 21:50:27 +0100 Subject: [PATCH] fixing category and tag lists --- config.toml | 4 ++-- themes/nipponalba/layouts/_default/list.html | 11 +++++++++-- .../layouts/partials/taxonomy/categories.html | 2 +- themes/nipponalba/layouts/partials/taxonomy/tags.html | 2 +- 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/config.toml b/config.toml index acc5dd70..7497bc78 100644 --- a/config.toml +++ b/config.toml @@ -34,8 +34,8 @@ defaultContentLanguage="en" [taxonomies] blog = "blog" image = "image" -tag = "tags" -category = "categories" +tag = "tag" +category = "category" type = "type" likeof = "likeof" inreplyto = "inreplyto" diff --git a/themes/nipponalba/layouts/_default/list.html b/themes/nipponalba/layouts/_default/list.html index 87ff8484..74c0ddad 100644 --- a/themes/nipponalba/layouts/_default/list.html +++ b/themes/nipponalba/layouts/_default/list.html @@ -2,7 +2,7 @@
{{if not (eq .Name "Blog")}}{{ .Name }}{{ end }}{{if eq .Name "Blog"}}All Blogs{{ end }}
{{end}} - {{ end }} + {{ end }}{{end}}{{else}} + {{ range .Pages }} + {{ end }} {{ end }} {{ end }} diff --git a/themes/nipponalba/layouts/partials/taxonomy/categories.html b/themes/nipponalba/layouts/partials/taxonomy/categories.html index 08433616..bacd02b9 100644 --- a/themes/nipponalba/layouts/partials/taxonomy/categories.html +++ b/themes/nipponalba/layouts/partials/taxonomy/categories.html @@ -1,6 +1,6 @@ diff --git a/themes/nipponalba/layouts/partials/taxonomy/tags.html b/themes/nipponalba/layouts/partials/taxonomy/tags.html index 5cb48a0b..976aecbc 100644 --- a/themes/nipponalba/layouts/partials/taxonomy/tags.html +++ b/themes/nipponalba/layouts/partials/taxonomy/tags.html @@ -1,6 +1,6 @@