Add html.html

This commit is contained in:
Will Faught
2023-02-24 17:46:26 -08:00
parent 71f80c7bbe
commit 4406aa8683
2 changed files with 9 additions and 6 deletions

View File

@@ -1,12 +1,7 @@
{{ $page := . }}
{{ $credit := $page.Param "paige.credit.data.hide" | not }}
{{ $dark := eq ($page.Param "paige.color_scheme") "dark" }}
{{ $lang := site.LanguageCode | default 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/html.html" $page }}
{{ partial "paige/head.html" $page }}
{{ partial "paige/body.html" $page }}
{{ if templates.Exists "partials/paige/body-first.html" }}