Files
fnx_web/res/template/wrap.html

43 lines
1.4 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<title>{{.Title}}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="stylesheet" href="/res/style/layout.css?v{{.CacheID}}"/>
<link rel="preload" href="/res/misc/MaterialIcons.woff2" as="font" type="font/woff2" crossorigin/>
<link rel="icon" href="/favicon.ico" sizes="32x32"/>
<link rel="icon" href="/res/img/nova.svg" type="image/svg+xml"/>
<link rel="apple-touch-icon" href="/res/img/nova_180.png"/>
{{range .OGData.MetaPropRules}}
<meta property="{{.Key}}" content="{{.Value}}" />
{{end}}
{{range .OGData.MetaNameRules}}
<meta name="{{.Key}}" content="{{.Value}}" />
{{end}}
{{range .OGData.LinkRules}}
<link rel="{{.Key}}" href="{{.Value}}" />
{{end}}
<script>
// The branding of the user's home directory, saved on the previous
// visit. Applying it before the page is drawn prevents a flash of
// the default theme while the app loads
try {
document.documentElement.style.cssText = localStorage.getItem("branding") ?? ""
} catch {}
window.api_endpoint = '{{.APIEndpoint}}';
window.server_hostname = "{{.Hostname}}";
{{with .User}}window.user = {{.}};{{end}}
{{with .Node}}window.initial_node = {{.}};{{end}}
</script>
<script src="/res/svelte/main.js" type="module"></script>
</head>
<body></body>
</html>