added frame metadata to AmContext and used that to replace the amsterdam_genRefresh variable

This commit is contained in:
2026-02-10 21:36:12 -07:00
parent be5255b4e7
commit 2e7474168b
3 changed files with 34 additions and 3 deletions
+2 -2
View File
@@ -14,8 +14,8 @@
<title>{{ .FrameTitle() | raw }} - {{ GlobalConfig.Site.Title }}</title>
<link rel="icon" href="/img/builtin/AmsterdamIcon32.png" type="image/png" />
<link rel="shortcut icon" href="/img/builtin/AmsterdamIcon32.ico" />
{{ if isset(amsterdam_genRefresh) && GlobalConfig.Site.TopRefresh > 0 }}
<meta http-equiv="refresh" content="{{ GlobalConfig.Site.TopRefresh }}">
{{ range k, v := .FrameMetadata(0) }}
<meta http-equiv="{{ k }}" content="{{ v }}">
{{ end }}
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="/static/css/ams_style.css" />