Skip to content

Commit

Permalink
fix [issues]: #285
Browse files Browse the repository at this point in the history
  • Loading branch information
MunifTanjim committed Jul 18, 2020
1 parent 5ba20e1 commit 594144f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/data/author/displayName
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{{- $.Scratch.Set "authorID" "" -}}

{{- if eq .Kind "taxonomy" -}}
{{- if eq .Kind "term" -}}
{{- $.Scratch.Set "authorID" .Data.Term -}}
{{- else if eq .Kind "taxonomyTerm" -}}
{{- else if eq .Kind "taxonomy" -}}
{{- $.Scratch.Set "authorID" .Name -}}
{{- else if eq .Kind "page" -}}
{{- $.Scratch.Set "authorID" ( index .Params.authors 0 ) -}}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/data/title
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{{ $siteTitle }}
{{- else if eq .Kind "404" -}}
{{ $title404 }} {{ $sep }} {{ $siteTitle }}
{{- else if eq .Kind "taxonomy" -}}
{{- else if eq .Kind "term" -}}
{{- ( ( i18n .Data.Singular 1 ) | default .Data.Singular ) -}}
{{- print ": " -}}
{{- if eq .Data.Singular "author" -}}
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/header/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<div class='container sep-after'>
<div class='header-info'>
<h1 class='title'>
{{- if eq .Kind "taxonomy" -}}
{{- if eq .Kind "term" -}}
<span class='taxonomy-name'>
{{- ( ( i18n .Data.Singular 1 ) | default .Data.Singular ) -}}
{{- print ": " -}}
</span>
{{- end -}}

{{- if eq .Kind "taxonomyTerm" -}}
{{- if eq .Kind "taxonomy" -}}
{{- ( ( i18n .Data.Singular 2 ) | default .Title ) -}}
{{- else if eq .Data.Singular "author" -}}
{{- partial "data/author/displayName" . -}}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/widgets/breadcrumbs.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

{{- define "breadcrumbs_add_parents" -}}
{{- .Scratch.Set "parent" .Page.Parent -}}
{{- if eq .Page.Kind "taxonomy" -}}
{{- if eq .Page.Kind "term" -}}
{{- .Scratch.Set "parent" ( .Page.Site.GetPage ( print "/" .Page.Data.Plural ) ) -}}
{{- end -}}

Expand Down
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ command = "ln -s ${PWD} ../minimo && hugo --source=exampleSite --baseURL=${DEPLO

[build.environment]
HUGO_THEMESDIR = "../.."
HUGO_VERSION = "0.67.1"
HUGO_VERSION = "0.73.0"
2 changes: 1 addition & 1 deletion theme.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ features = [
"utterances",
"widgets"
]
min_version = 0.67
min_version = 0.73

[author]
name = "Munif Tanjim"
Expand Down

0 comments on commit 594144f

Please sign in to comment.