From c0091ee95575d109452072eb58e186189da18220 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Wed, 28 Feb 2024 21:21:53 +0100 Subject: [PATCH] theme: avoid crash on 404 if author settings want to warn #785 --- layouts/partials/authorname.hugo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/authorname.hugo b/layouts/partials/authorname.hugo index c5532f8640..2e177df33e 100644 --- a/layouts/partials/authorname.hugo +++ b/layouts/partials/authorname.hugo @@ -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 }}