aboutsummaryrefslogtreecommitdiff
path: root/templates/header.tmpl
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2020-01-14 16:57:16 +0000
committerr <r@freesoftwareextremist.com>2020-01-14 16:57:16 +0000
commit55987a4c1bd7364eba7438e7326a76a9a550b668 (patch)
tree366dd5280f307ece3fc2343be3f24036f577f93b /templates/header.tmpl
parent3c6653a77b8951672ea169d175db154495a981fe (diff)
downloadbloat-55987a4c1bd7364eba7438e7326a76a9a550b668.tar.gz
bloat-55987a4c1bd7364eba7438e7326a76a9a550b668.zip
Refactor renderer and templates
Diffstat (limited to 'templates/header.tmpl')
-rw-r--r--templates/header.tmpl6
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/header.tmpl b/templates/header.tmpl
index 10afe8a..571008a 100644
--- a/templates/header.tmpl
+++ b/templates/header.tmpl
@@ -1,3 +1,4 @@
+{{with .Data}}
<!DOCTYPE html>
<html lang="en">
<head>
@@ -8,8 +9,9 @@
{{if .CustomCSS}}
<link rel="stylesheet" href="{{.CustomCSS}}">
{{end}}
- {{if .FluorideMode}}
+ {{if $.Ctx.FluorideMode}}
<script src="/static/fluoride.js"></script>
{{end}}
</head>
-<body {{if .DarkMode}}class="dark"{{end}}>
+<body {{if $.Ctx.DarkMode}}class="dark"{{end}}>
+{{end}}