From 87f9e8904842b6f219b89ee1bb1d2e1f952f753f Mon Sep 17 00:00:00 2001 From: Robert Date: Mon, 27 Jul 2020 01:33:41 +0200 Subject: [PATCH] Prefix term with taxonomy title (#369) * Prefix term with taxonomy title Fix list layout to properly prefix a term with the taxonomy title. * Replace taxonomy with term kind in title * Set minimal version for updated taxonomy kinds * Set minimal version for updated taxonomy kinds * Update CONTRIBUTORS.md --- layouts/_default/list.html | 2 +- layouts/partials/list.html | 2 +- netlify.toml | 4 ++-- theme.toml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 54fca03..e35b04c 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,5 +1,5 @@ {{ define "title" }} - {{- if eq .Kind "taxonomy" -}} + {{- if eq .Kind "term" -}} {{- i18n .Data.Singular | title -}} {{- print ": " -}} {{- end -}} diff --git a/layouts/partials/list.html b/layouts/partials/list.html index d56a9bf..6c9fe20 100644 --- a/layouts/partials/list.html +++ b/layouts/partials/list.html @@ -1,6 +1,6 @@

- {{- if eq .Kind "taxonomy" -}} + {{- if eq .Kind "term" -}} {{- i18n .Data.Singular | title -}} {{- print ": " -}} {{- end -}} diff --git a/netlify.toml b/netlify.toml index b5876a4..1583aa6 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,10 +3,10 @@ command = "make prepare && hugo --source demo --baseURL $URL" [context.production.environment] - HUGO_VERSION = "0.57.0" + HUGO_VERSION = "0.73.0" [context.deploy-preview] command = "make prepare && hugo --source demo --buildFuture --buildDrafts --baseURL $DEPLOY_PRIME_URL" [context.deploy-preview.environment] - HUGO_VERSION = "0.57.0" + HUGO_VERSION = "0.73.0" diff --git a/theme.toml b/theme.toml index 5a7ab00..adf3e70 100644 --- a/theme.toml +++ b/theme.toml @@ -19,7 +19,7 @@ features = [ "single-column", "syntax-highlighting" ] -min_version = "0.57" +min_version = "0.73.0" [author] name = "Luiz F. A. de PrĂ¡"