diff --git a/layouts/partials/site-header.html b/layouts/partials/site-header.html index a1d3e31bf..0b9649ed2 100755 --- a/layouts/partials/site-header.html +++ b/layouts/partials/site-header.html @@ -1,4 +1,4 @@ -{{ $featured_image := .Param "featured_image" | default "images/gohugo-default-sample-hero-image.jpg" }} +{{ $featured_image := .Param "featured_image"}} {{ 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 }}