diff options
author | r <r@freesoftwareextremist.com> | 2020-01-14 16:57:16 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2020-01-14 16:57:16 +0000 |
commit | 55987a4c1bd7364eba7438e7326a76a9a550b668 (patch) | |
tree | 366dd5280f307ece3fc2343be3f24036f577f93b /templates/header.tmpl | |
parent | 3c6653a77b8951672ea169d175db154495a981fe (diff) | |
download | bloat-55987a4c1bd7364eba7438e7326a76a9a550b668.tar.gz bloat-55987a4c1bd7364eba7438e7326a76a9a550b668.zip |
Refactor renderer and templates
Diffstat (limited to 'templates/header.tmpl')
-rw-r--r-- | templates/header.tmpl | 6 |
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}} |