From 2bd3edbe9111ba2ce3bc689d198b37ca1f290dc0 Mon Sep 17 00:00:00 2001 From: Leo Ho <63468786+leohku@users.noreply.github.com> Date: Sat, 25 May 2024 23:06:45 +0800 Subject: [PATCH] fix: author warning doesn't fail build --- layouts/partials/widgets/about.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/widgets/about.html b/layouts/partials/widgets/about.html index 8d49b99..f9e3e74 100644 --- a/layouts/partials/widgets/about.html +++ b/layouts/partials/widgets/about.html @@ -12,7 +12,7 @@ {{ $person_page := site.GetPage (printf "/authors/%s" $author) }} {{ $link := $person_page.Params.personal_homepage }} {{ if not $person_page }} - {{ errorf "Could not find an author page at `%s`. Please check the value of `author` in your About widget and create an associated author page if one does not already exist. See https://sourcethemes.com/academic/docs/page-builder/#about " $person_page_path }} + {{ warnf "Could not find an author page at `%s`. Please check the value of `author` in your About widget and create an associated author page if one does not already exist. See https://sourcethemes.com/academic/docs/page-builder/#about " $person_page_path }} {{end}} {{ $person := $person_page.Params }} {{ $avatar := ($person_page.Resources.ByType "image").GetMatch "*avatar*" }}