diff options
Diffstat (limited to 'layouts/partials/footer-opt.html')
-rw-r--r-- | layouts/partials/footer-opt.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/layouts/partials/footer-opt.html b/layouts/partials/footer-opt.html new file mode 100644 index 0000000..654e7ea --- /dev/null +++ b/layouts/partials/footer-opt.html @@ -0,0 +1,15 @@ +<!-- Get default accent colors --> +{{ $darkAccent := .Site.Params.Style.darkAccent | default .Site.Data.default.style.darkAccent }} +{{ $lightAccent := .Site.Params.Style.lightAccent | default .Site.Data.default.style.lightAccent }} + + +<section class="req-js"> + <button class="outline-dashed" title="{{ T "changeMode" }}"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><use xlink:href="#adjust"/></svg></button><input class="outline-dashed" type="color" list="presets" value="{{ if .Site.Params.Style.isDark }}{{ $darkAccent }}{{ else }}{{ $lightAccent }}{{ end }}" title="{{ T "changeAccent" }}" aria-label="{{ T "changeAccent" }}"><datalist id="presets"><option value="{{ $lightAccent }}"><option value="{{ $darkAccent }}">{{- range .Site.Params.style.presets -}}<option value="{{ . }}">{{ end }}</datalist> +</section> + +<!-- noscript notice --> +{{ if .Site.Params.hasNoscriptNotice }} + <noscript> + <p class="noscript">{{ T "noscript" }}</p> + </noscript> +{{ end }} |