mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-10-12 23:06:23 +00:00
15 lines
677 B
HTML
15 lines
677 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 }}
|
|
{{ end }}
|