commit 91111f868c006f34807294210614a1ef94cb172f
parent a8fdd842b90514e78b2d4b309f1bb23c42624d61
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date:   Wed, 19 Aug 2020 11:58:17 +0200

Changes required for Hugo 0.73

Diffstat:
Mconfig.toml | 3++-
Mlayouts/_default/list.html | 4++--
Mlayouts/partials/head-base.html | 2+-
3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/config.toml b/config.toml @@ -3,7 +3,8 @@ languageCode = "en-us" title = "Oscar Benedito" paginate = 5 pygmentsStyle = "solarized-dark256" -disableKinds = "taxonomyTerm" +disableKinds = "taxonomy" +ignoreErrors = ["error-disable-taxonomy"] [Author] name = "Oscar Benedito" diff --git a/layouts/_default/list.html b/layouts/_default/list.html @@ -1,5 +1,5 @@ {{ define "add-to-header" }} -{{- if eq .Kind "taxonomy" }} +{{- if eq .Kind "term" }} <link rel="alternate" type="application/atom+xml" title="{{ .Data.Singular | title }}: {{ .Title }} on Oscar's Blog" href="{{ .RelPermalink }}index.xml"> {{ end }} {{ end }} @@ -10,7 +10,7 @@ <header> {{ .Content }} </header> - {{- else if eq .Kind "taxonomy" }} + {{- else if eq .Kind "term" }} <header> <h1>{{ .Data.Singular | title }}: {{ .Title }}</h1> </header> diff --git a/layouts/partials/head-base.html b/layouts/partials/head-base.html @@ -5,5 +5,5 @@ {{- $favicon := resources.Get "img/favicon.min.svg" | fingerprint }} <link rel="icon" href="{{ $favicon.RelPermalink }}"> <link rel="shortcut icon" href="/favicon.ico"> -<title>{{ if .Params.headtitle }}{{ .Params.headtitle }} | {{ else if eq .Kind "taxonomy" }}{{ .Title }} | {{ else if not .IsHome }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title> +<title>{{ if .Params.headtitle }}{{ .Params.headtitle }} | {{ else if eq .Kind "term" }}{{ .Title }} | {{ else if not .IsHome }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title> <link rel="alternate" type="application/atom+xml" title="Oscar's Blog" href="/blog/index.xml">