szabadpalya/api/cmd/server/document.html

52 lines
1.8 KiB
HTML

<!doctype html>
<html lang="hu" class="h-full">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>{{ .Title }}</title>
<meta name="description" content="{{ .Description }}" />
{{- if .Canonical }}
<link rel="canonical" href="{{ .Canonical }}" />
{{- end }}
<meta property="og:site_name" content="Szabadpálya" />
<meta property="og:locale" content="hu_HU" />
<meta property="og:type" content="{{ .OG.Type }}" />
<meta property="og:title" content="{{ .OG.Title }}" />
<meta property="og:description" content="{{ .OG.Description }}" />
{{- if .OG.URL }}
<meta property="og:url" content="{{ .OG.URL }}" />
{{- end }}
{{- if .OG.Image }}
<meta property="og:image" content="{{ .OG.Image }}" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="{{ .OG.ImageAlt }}" />
<meta name="twitter:card" content="summary_large_image" />
{{- else }}
<meta name="twitter:card" content="summary" />
{{- end }}
<!-- Runs before the first paint so an explicitly chosen theme does not flash. -->
<script>try{var t=localStorage.getItem('szp-theme');if(t==='light'||t==='dark'){document.documentElement.setAttribute('data-theme',t)}}catch(e){}</script>
{{- range .Styles }}
<link rel="stylesheet" href="{{ . }}" />
{{- end }}
{{- range .ModulePreload }}
<link rel="modulepreload" href="{{ . }}" />
{{- end }}
{{- range .Scripts }}
<script type="module" src="{{ . }}"></script>
{{- end }}
</head>
<body class="flex min-h-full flex-col">
<div id="root"></div>
{{- if .Bootstrap }}
<!-- The data the first route would otherwise fetch. Read once, then dropped,
so a client-side navigation back to this route refetches live numbers. -->
<script type="application/json" id="__DATA__">{{ .Bootstrap }}</script>
{{- end }}
</body>
</html>