Add html.html

master
Will Faught 2 years ago
parent 71f80c7bbe
commit 4406aa8683

@ -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" }}

@ -0,0 +1,8 @@
{{ $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" }}
<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 }}>
Loading…
Cancel
Save