photoprism/assets/templates/share.gohtml
Michael Mayer 59da5037e6 Server: Add Error 404 Not Found template and change ext to .gohtml #840
Signed-off-by: Michael Mayer <michael@photoprism.app>
2022-10-18 22:19:41 +02:00

40 lines
1.6 KiB
Text

<!DOCTYPE html>
<html lang="en" data-color-mode="dark" data-light-theme="light" data-dark-theme="dark" class="overflow-y-hidden">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0{{if not .config.Settings.UI.Zoom }}, maximum-scale=1.0, user-scalable=no{{end}}">
<title>{{ .config.SiteTitle }}{{if .config.SiteCaption}}: {{ .config.SiteCaption }}{{end}}</title>
<meta property="og:url" content="{{ .config.SiteUrl }}">
<meta property="og:type" content="website">
<meta property="og:title" content="{{ .config.SiteCaption }}">
<meta property="og:image" content="{{ .config.SitePreview }}">
<meta property="og:description" content="{{ .config.SiteDescription }}">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="{{ .config.SiteCaption }}">
<meta name="twitter:image" content="{{ .config.SitePreview }}">
<meta name="twitter:description" content="{{ .config.SiteDescription }}">
{{if .config.SiteAuthor}}<meta name="author" content="{{ .config.SiteAuthor }}">{{end}}
{{if .config.SiteDescription}}<meta name="description" content="{{ .config.SiteDescription }}"/>{{end}}
{{template "favicons.gohtml" .}}
<link rel="stylesheet" href="{{ .config.CssUri }}">
<link rel="manifest" href="{{ .config.ManifestUri }}" crossorigin="use-credentials">
<script>
window.__SHARED__ = {{ .shared }};
window.__CONFIG__ = {{ .config }};
</script>
</head>
<body class="{{ .config.Flags }} nojs">
{{template "app.gohtml" .}}
<script src="{{ .config.JsUri }}"></script>
</body>
</html>