Skip to content

Commit

Permalink
theme: avoid crash on 404 if author settings want to warn #785
Browse files Browse the repository at this point in the history
  • Loading branch information
McShelby committed Feb 28, 2024
1 parent fdf5904 commit c0091ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/authorname.hugo
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit c0091ee

Please sign in to comment.