diff options
author | Troy Lindsay <tlindsay42@users.noreply.github.com> | 2022-01-10 23:24:14 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-10 23:24:14 +0300 |
commit | 3789b8edae1b46e5f91031037f4f9d33972377d3 (patch) | |
tree | f589e88f684cbbc8c8b91e34758466df48583ac9 | |
parent | fc9b2352db08440cd9c6fc54d3ebcb4d2f5acb15 (diff) |
Standardize featured_image logic (#473) (#474)
-rwxr-xr-x | layouts/partials/site-header.html | 2 |
1 files changed, 1 insertions, 1 deletions
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 }} |