mirror of https://github.com/luizdepra/hugo-coder.git

Robert
27.33.2020 87f9e8904842b6f219b89ee1bb1d2e1f952f753f
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
4 files modified
10 ■■■■ changed files
layouts/_default/list.html 2 ●●● patch | view | raw | blame | history
layouts/partials/list.html 2 ●●● patch | view | raw | blame | history
netlify.toml 4 ●●●● patch | view | raw | blame | history
theme.toml 2 ●●● patch | view | raw | blame | history
layouts/_default/list.html
@@ -1,5 +1,5 @@
{{ define "title" }}
  {{- if eq .Kind "taxonomy" -}}
  {{- if eq .Kind "term" -}}
    {{- i18n .Data.Singular | title -}}
    {{- print ": " -}}
  {{- end -}}
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 -}}
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"
theme.toml
@@ -19,7 +19,7 @@
  "single-column",
  "syntax-highlighting"
]
min_version = "0.57"
min_version = "0.73.0"
[author]
  name = "Luiz F. A. de PrĂ¡"