{{/* Opt-in preview for Blowfish's built-in homepage layouts. */}} {{ $layouts := slice "landing" "background" "hero" "profile" "page" "card" }}
{{ range $index, $layout := $layouts }} {{ $html := partial (printf "home/%s.html" $layout) $ }} {{ if ne $index 0 }} {{/* Hidden panels must not eagerly fetch their imagery. */}} {{ $html = replace $html `loading="eager"` `loading="lazy"` }} {{ $html = replace $html `fetchpriority="high"` `fetchpriority="low"` }} {{ end }}
{{ $html | safeHTML }}
{{ end }}

Theme playground

Try a homepage layout

Same content, six built-in Blowfish layouts. Pick one to preview it in place.

Layout documentation
{{ range $index, $layout := $layouts }} {{ end }}
{{ $jsSwitcher := resources.Get "js/layout-switcher.js" | resources.Minify | resources.Fingerprint (site.Params.fingerprintAlgorithm | default "sha512") }}