From 3e54d30fa10cab99db4af3d3efa207e65060eef1 Mon Sep 17 00:00:00 2001 From: Christian Date: Mon, 2 Nov 2020 22:56:12 +0100 Subject: [PATCH] Switched to featured image --- layouts/partials/page-header.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/page-header.html b/layouts/partials/page-header.html index ddfd51c..49781ed 100644 --- a/layouts/partials/page-header.html +++ b/layouts/partials/page-header.html @@ -1,8 +1,8 @@ -{{ $header_image := partial "func/GetNamedImage.html" (dict "context" . "name" "header_image") }} +{{ $header_image := partial "func/GetNamedImage.html" (dict "context" . "name" "featured_image") }} {{$image_resource := $header_image }} {{ if $image_resource }} -{{ $header_img := $image_resource.Resize "1200x" }} +{{ $header_img := $image_resource.Fill "1200x600 Center" }} {{ $image_url := $header_img.Permalink }} {{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}} {{ $image_url := (trim $image_url "/") | absURL }}