diff --git a/layouts/partials/page_header.html b/layouts/partials/page_header.html index f80e84c0..66428dfe 100644 --- a/layouts/partials/page_header.html +++ b/layouts/partials/page_header.html @@ -15,7 +15,7 @@ {{end}} {{/* Header image */}} -{{ if and .Params.header.image (not $featured) }} +{{ if and .Params.header.image (not (and $featured (not .Params.image.preview_only))) }}
{{ $img_src := urls.Parse .Params.header.image }} {{ if $img_src.Scheme }} @@ -29,7 +29,7 @@ {{end}} {{/* Featured image */}} -{{ if and $featured (not $.Params.image.preview_only) }} +{{ if and $featured (not .Params.image.preview_only) }} {{ $image := $featured.Fill (printf "1600x400 q90 %s" $anchor) }}