mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +00:00
theme: avoid crash on 404 if author settings want to warn #785
This commit is contained in:
parent
fdf590426c
commit
c0091ee955
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@
|
||||||
{{- $authorName = . }}
|
{{- $authorName = . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{- warnf "%q: DEPRECATED usage of 'params.author' config parameter found, replace it with `params.author.name` in your hugo.toml; see https://mcshelby.github.io/hugo-theme-relearn/basics/migration#5230" .File.Filename }}
|
{{- warnf "DEPRECATED usage of 'params.author' config parameter found, replace it with `params.author.name` in your hugo.toml; see https://mcshelby.github.io/hugo-theme-relearn/basics/migration#5230" }}
|
||||||
{{- $authorName = .Site.Params.author }}
|
{{- $authorName = .Site.Params.author }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
|
|
Loading…
Reference in a new issue