Add paige.color_scheme config
parent
caac4048b5
commit
c643ab3ffb
@ -1,6 +1,9 @@
|
|||||||
{{ $params := . }}
|
{{ $params := . }}
|
||||||
|
|
||||||
|
{{ if and (not (eq $params.color_scheme "dark")) (not (eq $params.color_scheme "light")) }}
|
||||||
$color-mode-type: media-query;
|
$color-mode-type: media-query;
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
$primary: {{ $params.color }};
|
$primary: {{ $params.color }};
|
||||||
|
|
||||||
@import "bootstrap";
|
@import "bootstrap";
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{{ $page := . }}
|
{{ $page := . }}
|
||||||
|
|
||||||
|
{{ $dark := eq ($page.Param "paige.color_scheme") "dark" }}
|
||||||
{{ $lang := site.LanguageCode | default site.Language.Lang }}
|
{{ $lang := site.LanguageCode | default site.Language.Lang }}
|
||||||
{{ $rtl := eq $page.Language.LanguageDirection "rtl" }}
|
{{ $rtl := eq $page.Language.LanguageDirection "rtl" }}
|
||||||
|
|
||||||
<html data-paige="Paige theme from https://github.com/willfaught/paige" {{ if $rtl }} dir="rtl" {{ end }} {{ with $lang }} lang="{{ . }}" {{ end }}>
|
<html {{ if $dark }} data-bs-theme="dark" {{ end }} data-paige="Paige theme from https://github.com/willfaught/paige" {{ if $rtl }} dir="rtl" {{ end }} {{ with $lang }} lang="{{ . }}" {{ end }}>
|
||||||
|
Loading…
Reference in New Issue