Files
blowfish/layouts/index.html
T
Nuno CoraçãoandClaude Fable 5 e50adceca0 🚚 Move homepage sponsors and contributors to example site
The theme homepage no longer renders blowfish.page's sponsor and
contributor sections; the example site overrides index.html instead,
so user sites don't inherit the theme repo's data files.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-17 20:19:02 +01:00

18 lines
750 B
HTML

{{ define "main" }}
{{ if .Site.Params.homepage.layoutSwitcher | default false }}
{{ partial "home/layout-switcher.html" . }}
{{ $jsHome := resources.Get "js/home.js" | resources.Minify | resources.Fingerprint (.Site.Params.fingerprintAlgorithm | default "sha512") }}
<script defer type="text/javascript" src="{{ $jsHome.RelPermalink }}" integrity="{{ $jsHome.Data.Integrity }}"></script>
{{ else }}
{{ $partial := print "home/" .Site.Params.homepage.layout ".html" }}
{{ if templates.Exists ( printf "partials/%s" $partial ) }}
{{ partial $partial . }}
{{ else }}
{{ partial "home/profile.html" . }}
{{ end }}
{{ end }}
<section>
{{ partial "recent-articles/main.html" . }}
</section>
{{ end }}