From ea28a86a6d824ec89797b99bc6e0e282c599e98f Mon Sep 17 00:00:00 2001 From: Troy Lindsay Date: Fri, 31 Dec 2021 11:29:32 -0600 Subject: [PATCH] Standardize featured_image logic (#473) --- layouts/partials/site-header.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/site-header.html b/layouts/partials/site-header.html index 10a682f..aad8749 100755 --- a/layouts/partials/site-header.html +++ b/layouts/partials/site-header.html @@ -1,4 +1,4 @@ -{{ $featured_image := .Param "featured_image"}} +{{ $featured_image := partial "func/GetFeaturedImage.html" . }} {{ if $featured_image }} {{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}} {{ $featured_image := (trim $featured_image "/") | absURL }}