bloat/templates/header.tmpl

34 lines
966 B
Cheetah
Raw Normal View History

2020-01-14 18:57:16 +02:00
{{with .Data}}
2019-12-13 20:08:26 +02:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset='utf-8'>
2020-10-25 13:35:22 +02:00
<link rel="icon" type="image/png" href="/static/favicon.png">
2019-12-13 20:08:26 +02:00
<meta content='width=device-width, initial-scale=1' name='viewport'>
2020-02-23 15:26:39 +02:00
{{if .Target}}
<base href="" target="{{.Target}}">
{{end}}
2020-01-25 12:07:06 +02:00
{{if .CSRFToken}}
<meta name="csrf_token" content="{{.CSRFToken}}">
{{end}}
{{if $.Ctx.AntiDopamineMode}}
<meta name="antidopamine_mode" content="{{$.Ctx.AntiDopamineMode}}">
{{end}}
{{if .RefreshInterval}}
<meta http-equiv="refresh" content="{{.RefreshInterval}}">
2020-02-19 00:15:37 +02:00
{{end}}
2022-03-30 18:52:30 +03:00
<title> {{if gt .Count 0}}({{.Count}}){{end}} {{.Title}} </title>
2020-01-28 19:51:00 +02:00
<link rel="stylesheet" href="/static/style.css">
{{if .CustomCSS}}
<link rel="stylesheet" href="{{.CustomCSS}}">
{{end}}
2020-01-14 18:57:16 +02:00
{{if $.Ctx.FluorideMode}}
2020-01-08 20:16:06 +02:00
<script src="/static/fluoride.js"></script>
{{end}}
2021-04-03 12:22:43 +03:00
{{if $.Ctx.UserCSS}}
2022-05-10 20:25:58 +03:00
<style>{{RawCSS $.Ctx.UserCSS}}</style>
2021-04-03 12:22:43 +03:00
{{end}}
2019-12-13 20:08:26 +02:00
</head>
2020-01-14 18:57:16 +02:00
<body {{if $.Ctx.DarkMode}}class="dark"{{end}}>
{{end}}