diff --git a/exampleSite/content/post/getting-started/index.md b/exampleSite/content/post/getting-started/index.md index 5b527ef8..b1dfb49e 100644 --- a/exampleSite/content/post/getting-started/index.md +++ b/exampleSite/content/post/getting-started/index.md @@ -30,6 +30,9 @@ summary = "Create a beautifully simple website or blog in under 10 minutes." # Options: Smart, Center, TopLeft, Top, TopRight, Left, Right, BottomLeft, Bottom, BottomRight focal_point = "" + # Show image only in page previews? + preview_only = false + # Set captions for image gallery. [[gallery_item]] diff --git a/layouts/partials/page_header.html b/layouts/partials/page_header.html index 91fb28d9..f80e84c0 100644 --- a/layouts/partials/page_header.html +++ b/layouts/partials/page_header.html @@ -29,14 +29,14 @@ {{end}} {{/* Featured image */}} -{{ with $featured }} -{{ $image := .Fill (printf "1600x400 q90 %s" $anchor) }} +{{ if and $featured (not $.Params.image.preview_only) }} +{{ $image := $featured.Fill (printf "1600x400 q90 %s" $anchor) }}