Showcase

{{/* NOTE: transitions for this section are in themes/gohugoioTheme/src/css/_carousel.css */}}
{{ $showcasePages := where .Site.RegularPages "Section" "showcase" }} {{ if $showcasePages }} {{ template "home_showcase_item" (index $showcasePages 0) }} {{ range $p := first 10 ($showcasePages | after 1 | shuffle) }} {{template "home_showcase_item" $p }} {{end}} {{end}}
{{/* END */}}
{{/* using Flex to make the button show up on the right side */}} See All
{{ define "home_showcase_item" }} {{ $img := (.Resources.ByType "image").GetMatch "*featured*" }} {{ with $img }} {{ $big := .Fill "1024x512 top" }} {{ $small := $big.Resize "512x" }} {{with $.Title}}
{{.}} →
{{end}}
{{ end }} {{ end }}