Fix issues related to AntiDopamine mode
[bloat] / templates / header.tmpl
1 {{with .Data}}
2 <!DOCTYPE html>
3 <html lang="en">
4 <head>
5         <meta charset='utf-8'>
6         <meta content='width=device-width, initial-scale=1' name='viewport'>
7         {{if .Target}}
8         <base href="" target="{{.Target}}">
9         {{end}}
10         {{if .CSRFToken}}
11         <meta name="csrf_token" content="{{.CSRFToken}}">
12         {{end}}
13         {{if $.Ctx.AntiDopamineMode}}
14         <meta name="antidopamine_mode" content="{{$.Ctx.AntiDopamineMode}}">
15         {{end}}
16         {{if .AutoRefresh}}
17         <meta http-equiv="refresh" content="30">
18         {{end}}
19         <title> {{if gt .Count 0}}({{.Count}}){{end}} {{.Title}} </title>
20         <link rel="stylesheet" href="/static/style.css">
21         {{if .CustomCSS}}
22         <link rel="stylesheet" href="{{.CustomCSS}}">
23         {{end}}
24         {{if $.Ctx.FluorideMode}}
25         <script src="/static/fluoride.js"></script>
26         {{end}}
27 </head>
28 <body {{if $.Ctx.DarkMode}}class="dark"{{end}}>
29 {{end}}