You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.7 KiB
HTML

{{ $page := . }}
{{ $credit := not ($page.Param "paige.hide_credit_data") }}
{{ $dark := eq ($page.Param "paige.color_scheme") "dark" }}
{{ $lang := $page.Site.LanguageCode | default $page.Site.Language.Lang }}
{{ $rtl := eq $page.Language.LanguageDirection "rtl" }}
<!doctype html>
<html {{ if $dark }} data-bs-theme="dark" {{ end }} {{ if $credit }} data-paige-credit="Paige theme from https://github.com/willfaught/paige" {{ end }} {{ if $rtl }} dir="rtl" {{ end }} {{ with $lang }} lang="{{ . }}" {{ end }}>
{{ partial "paige/head.html" $page }}
{{ partial "paige/body.html" $page }}
{{ if templates.Exists "partials/paige/body-first.html" }}
{{ partial "paige/body-first.html" $page }}
{{ end }}
<div class="container flex-fill">
<div class="row">
<div class="col">
{{ partial "paige/header.html" $page }}
<main>
{{ if templates.Exists "partials/paige/main-first.html" }}
{{ partial "paige/main-first.html" $page }}
{{ end }}
{{ block "main" $page }}{{ end }}
{{ if templates.Exists "partials/paige/main-last.html" }}
{{ partial "paige/main-last.html" $page }}
{{ end }}
</main>
{{ partial "paige/footer.html" $page }}
</div>
</div>
</div>
{{ partial "paige/scripts.html" $page }}
{{ if templates.Exists "partials/paige/body-last.html" }}
{{ partial "paige/body-last.html" $page }}
{{ end }}
</body>
</html>