Sfoglia il codice sorgente

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
Robert 5 anni fa
parent
commit
87f9e89048
4 ha cambiato i file con 5 aggiunte e 5 eliminazioni
  1. 1 1
      layouts/_default/list.html
  2. 1 1
      layouts/partials/list.html
  3. 2 2
      netlify.toml
  4. 1 1
      theme.toml

+ 1 - 1
layouts/_default/list.html

@@ -1,5 +1,5 @@
 {{ define "title" }}
-  {{- if eq .Kind "taxonomy" -}}
+  {{- if eq .Kind "term" -}}
     {{- i18n .Data.Singular | title -}}
     {{- print ": " -}}
   {{- end -}}

+ 1 - 1
layouts/partials/list.html

@@ -1,6 +1,6 @@
 <section class="container list">
   <h1 class="title">
-    {{- if eq .Kind "taxonomy" -}}
+    {{- if eq .Kind "term" -}}
       {{- i18n .Data.Singular | title -}}
       {{- print ": " -}}
     {{- end -}}

+ 2 - 2
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"

+ 1 - 1
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á"