theme: avoid crash on 404 if author settings want to warn #785

This commit is contained in:
Sören Weber 2024-02-28 21:21:53 +01:00
parent fdf590426c
commit c0091ee955
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -5,7 +5,7 @@
{{- $authorName = . }}
{{- end }}
{{- 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 }}
{{- end }}
{{- else }}