From afdc89a74ebc85b03bd12f0d38c4a6f0498b32dc Mon Sep 17 00:00:00 2001 From: Joe Hutchinson Date: Fri, 31 Jul 2020 15:36:11 -0400 Subject: [PATCH] Fix error if bgimg param is not added to config --- layouts/partials/head.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index e9e54b1..463efca 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -33,7 +33,7 @@ {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} {{ template "_internal/google_analytics.html" . }} - {{ with resources.Get .Site.Params.bgimg -}} + {{ with resources.GetMatch .Site.Params.bgimg -}}