diff --git a/resources/_gen/images/showcase/template/featured-template_hu2f0d11388f944348b232a431caeb965b_41270_1024x512_fill_catmullrom_top.png b/resources/_gen/images/showcase/template/featured-template_hu2f0d11388f944348b232a431caeb965b_41270_1024x512_fill_catmullrom_top.png new file mode 100644 index 000000000..aac9edb66 Binary files /dev/null and b/resources/_gen/images/showcase/template/featured-template_hu2f0d11388f944348b232a431caeb965b_41270_1024x512_fill_catmullrom_top.png differ diff --git a/resources/_gen/images/showcase/template/featured-template_hu2f0d11388f944348b232a431caeb965b_41270_512x256_fill_catmullrom_top.png b/resources/_gen/images/showcase/template/featured-template_hu2f0d11388f944348b232a431caeb965b_41270_34aaa1bbe5cc1b4798bfff8f28e1033e.png similarity index 100% rename from resources/_gen/images/showcase/template/featured-template_hu2f0d11388f944348b232a431caeb965b_41270_512x256_fill_catmullrom_top.png rename to resources/_gen/images/showcase/template/featured-template_hu2f0d11388f944348b232a431caeb965b_41270_34aaa1bbe5cc1b4798bfff8f28e1033e.png diff --git a/resources/_gen/images/showcase/template/featured-template_hu2f0d11388f944348b232a431caeb965b_41270_600x300_fill_catmullrom_top.png b/resources/_gen/images/showcase/template/featured-template_hu2f0d11388f944348b232a431caeb965b_41270_600x300_fill_catmullrom_top.png deleted file mode 100644 index 4cee063ce..000000000 Binary files a/resources/_gen/images/showcase/template/featured-template_hu2f0d11388f944348b232a431caeb965b_41270_600x300_fill_catmullrom_top.png and /dev/null differ diff --git a/resources/_gen/images/showcase/template/featured-template_hu2f0d11388f944348b232a431caeb965b_41270_940x0_resize_catmullrom.png b/resources/_gen/images/showcase/template/featured-template_hu2f0d11388f944348b232a431caeb965b_41270_940x0_resize_catmullrom.png deleted file mode 100644 index 96ff188b9..000000000 Binary files a/resources/_gen/images/showcase/template/featured-template_hu2f0d11388f944348b232a431caeb965b_41270_940x0_resize_catmullrom.png and /dev/null differ diff --git a/themes/gohugoioTheme/layouts/partials/home-page-sections/showcase.html b/themes/gohugoioTheme/layouts/partials/home-page-sections/showcase.html index 8c2f2e9a3..337fd2fc8 100644 --- a/themes/gohugoioTheme/layouts/partials/home-page-sections/showcase.html +++ b/themes/gohugoioTheme/layouts/partials/home-page-sections/showcase.html @@ -7,8 +7,14 @@ {{ range $p := first 10 (where .Site.RegularPages "Section" "showcase") }} {{ $img := (.Resources.ByType "image").GetMatch "*featured*" }} {{ with $img }} - {{ $img := .Fill "512x256 top" }} - {{/* data-bg uses a lazyload script to load the actual background image. It is located here: themes/gohugoioTheme/src/js/lazysizes.js */}} + {{ $big := .Fill "1024x512 top" }} + {{ $small := $big.Resize "512x" }} + {{with $p.Title}}
diff --git a/themes/gohugoioTheme/layouts/showcase/list.html b/themes/gohugoioTheme/layouts/showcase/list.html index 0553e4af1..709219947 100644 --- a/themes/gohugoioTheme/layouts/showcase/list.html +++ b/themes/gohugoioTheme/layouts/showcase/list.html @@ -22,12 +22,16 @@ {{define "showcase_items"}} - +
{{ $img := (.Resources.ByType "image").GetMatch "*featured*" }} {{ with $img }} - {{ $img := .Fill "600x300 top" }} - + {{ $big := .Fill "1024x512 top" }} + {{ $small := $big.Resize "512x" }} + {{end}}
{{/* the margin aligns to the bottom */}}

diff --git a/themes/gohugoioTheme/layouts/showcase/single.html b/themes/gohugoioTheme/layouts/showcase/single.html index 55fec7f49..c3e15127e 100644 --- a/themes/gohugoioTheme/layouts/showcase/single.html +++ b/themes/gohugoioTheme/layouts/showcase/single.html @@ -35,8 +35,9 @@ Showcase: {{ .Title }} {{define "main-column"}} {{ $img := (.Resources.ByType "image").GetMatch "*featured*" }} {{ with $img }} - {{ $img := .Resize "940x" }} - {{ $img.Title }} + {{ $big := .Fill "1024x512 top" }} + {{ $small := $big.Resize "512x" }} + {{ $img.Title }} {{ end }}