header.tmpl 974 B

123456789101112131415161718192021222324252627282930313233
  1. {{with .Data}}
  2. <!DOCTYPE html>
  3. <html lang="en">
  4. <head>
  5. <meta charset='utf-8'>
  6. <link rel="icon" type="image/png" href="/static/favicon.png">
  7. <meta content='width=device-width, initial-scale=1' name='viewport'>
  8. {{if .Target}}
  9. <base href="" target="{{.Target}}">
  10. {{end}}
  11. {{if .CSRFToken}}
  12. <meta name="csrf_token" content="{{.CSRFToken}}">
  13. {{end}}
  14. {{if $.Ctx.AntiDopamineMode}}
  15. <meta name="antidopamine_mode" content="{{$.Ctx.AntiDopamineMode}}">
  16. {{end}}
  17. {{if .RefreshInterval}}
  18. <meta http-equiv="refresh" content="{{.RefreshInterval}}">
  19. {{end}}
  20. <title> {{if gt .Count 0}}({{.Count}}){{end}} {{.Title}} </title>
  21. <link rel="stylesheet" href="/static/style.css">
  22. {{if .CustomCSS}}
  23. <link rel="stylesheet" href="/static/{{.CustomCSS}}">
  24. {{end}}
  25. {{if $.Ctx.FluorideMode}}
  26. <script src="/static/fluoride.js"></script>
  27. {{end}}
  28. {{if $.Ctx.UserCSS}}
  29. <style>{{RawCSS $.Ctx.UserCSS}}</style>
  30. {{end}}
  31. </head>
  32. <body {{if $.Ctx.DarkMode}}class="dark"{{end}}>
  33. {{end}}