mirror of
https://github.com/gethinode/hinode.git
synced 2025-10-17 23:13:11 +00:00
74 lines
3.1 KiB
HTML
74 lines
3.1 KiB
HTML
{{- $section := .Section }}
|
|
{{- with partial "utilities/GetMenu" . }}{{ $.Scratch.Set "sidebar" . }}{{ end -}}
|
|
{{ $.Scratch.Set "version" (site.Param (printf "%s.version" .Section)) }}
|
|
|
|
<!doctype html>
|
|
<html lang="{{ .Site.Language.Lang }}" class="no-js">
|
|
<head>
|
|
{{ block "head" . }}{{ end -}}
|
|
</head>
|
|
|
|
<body>
|
|
{{- if site.Params.main.enableDarkMode -}}
|
|
{{- partial "footer/scripts.html" (dict "filename" "js/critical.bundle.js" "match" "js/critical/**.js" "header" true "page" .) -}}
|
|
{{- end -}}
|
|
<div class="d-flex flex-column min-vh-100{{ if and .IsHome .Site.Params.home.style }} {{ .Site.Params.home.style }}{{ end }}">
|
|
<div class="{{ if .Site.Params.navigation.fixed }}mb-4{{ end }}">
|
|
{{- partial "assets/navbar.html" (dict
|
|
"page" .
|
|
"fixed" (string .Site.Params.navigation.fixed)
|
|
"color" (.Site.Params.navigation.color)
|
|
"style" (default "light" .Site.Params.navigation.style))
|
|
-}}
|
|
</div>
|
|
{{ if .IsHome -}}
|
|
{{ if .Site.Params.home.fullCover -}}
|
|
<div class="d-flex flex-fill {{ if .Site.Params.navigation.fixed }}mt-5{{ end }}">
|
|
{{ block "featured" . }}{{ end -}}
|
|
</div>
|
|
{{ else -}}
|
|
<div class="{{ if .Site.Params.navigation.fixed }}mt-5{{ end }}">
|
|
{{ block "featured" . }}{{ end -}}
|
|
</div>
|
|
<div class="d-flex flex-column flex-fill">
|
|
{{ block "main" . }}{{ end -}}
|
|
</div>
|
|
{{ if not .Site.Params.main.footerBelowFold }}
|
|
<div class="">
|
|
{{- partial "footer/social.html" . -}}
|
|
{{- partial "footer/footer.html" . -}}
|
|
</div>
|
|
{{ end }}
|
|
{{ end -}}
|
|
{{ else -}}
|
|
<div class="d-flex flex-column flex-fill {{ if .Site.Params.navigation.fixed }}mt-5{{ end }}">
|
|
{{ block "main" . }}{{ end -}}
|
|
</div>
|
|
{{ if not .Site.Params.main.footerBelowFold }}
|
|
<div class="">
|
|
{{- partial "footer/social.html" . -}}
|
|
{{- partial "footer/footer.html" . -}}
|
|
</div>
|
|
{{ end }}
|
|
{{ end -}}
|
|
</div>
|
|
|
|
{{ if and .IsHome .Site.Params.home.fullCover -}}
|
|
<div class="">
|
|
{{ block "main" . }}{{ end -}}
|
|
</div>
|
|
<div class="">
|
|
{{- partial "footer/social.html" . -}}
|
|
{{- partial "footer/footer.html" . -}}
|
|
</div>
|
|
{{ else if .Site.Params.main.footerBelowFold }}
|
|
<div class="">
|
|
{{- partial "footer/social.html" . -}}
|
|
{{- partial "footer/footer.html" . -}}
|
|
</div>
|
|
{{ end }}
|
|
|
|
{{- partialCached "footer/scripts.html" (dict "header" false "page" .) }}
|
|
</body>
|
|
</html>
|