Add CSRF protection
[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 .CSRFToken}}
8         <meta name="csrf_token" content="{{.CSRFToken}}">
9         {{end}}
10         <title>{{if gt .NotificationCount 0}}({{.NotificationCount}}) {{end}}{{.Title}}</title>
11         <link rel="stylesheet" href="/static/main.css">
12         {{if .CustomCSS}}
13         <link rel="stylesheet" href="{{.CustomCSS}}">
14         {{end}}
15         {{if $.Ctx.FluorideMode}}
16         <script src="/static/fluoride.js"></script>
17         {{end}}
18 </head>
19 <body {{if $.Ctx.DarkMode}}class="dark"{{end}}>
20 {{end}}