From 7f47cdf165cc7524239191008b87818912ab81ff Mon Sep 17 00:00:00 2001 From: Jimmy Date: Sun, 1 Feb 2026 13:11:42 +0100 Subject: [PATCH] fix: check if favicon exists before accessing permalink (#1259) --- layouts/_partials/head/head.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/_partials/head/head.html b/layouts/_partials/head/head.html index 2149fa6..dbe85c2 100644 --- a/layouts/_partials/head/head.html +++ b/layouts/_partials/head/head.html @@ -18,9 +18,9 @@ {{- end -}} -{{ with .Site.Params.favicon }} - {{- $favicon := partial "helper/image" (dict "Image" . "Resources" resources) -}} - +{{- $favicon := partial "helper/image" (dict "Image" .Site.Params.favicon "Resources" resources) -}} +{{ with $favicon }} + {{ end }} {{- partial "google_analytics.html" . -}}