From 3789b8edae1b46e5f91031037f4f9d33972377d3 Mon Sep 17 00:00:00 2001 From: Troy Lindsay Date: Mon, 10 Jan 2022 14:24:14 -0600 Subject: [PATCH] Standardize featured_image logic (#473) (#474) --- 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 }}