mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 21:02:09 +00:00
81 lines
2.8 KiB
HTML
81 lines
2.8 KiB
HTML
<!DOCTYPE html>
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="{{- default "" .Site.LanguageCode }}" xml:lang="{{- default "" .Site.LanguageCode }}" prefix="cc: http://creativecommons.org/ns#">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="disabled-adaptations" content="watch" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
|
|
<!-- inline CSS; remember to allow it with a hash in the CSP -->
|
|
{{- $resources := slice -}}
|
|
{{- $resources = $resources | append (resources.Get "/css/main.css") -}}
|
|
{{ $dark := .Site.Params.dark | default "auto" -}}
|
|
{{- if not (eq $dark "off") -}}
|
|
{{ $resources = $resources | append (resources.Get "css/dark.css" | resources.ExecuteAsTemplate "dark.css" .) -}}
|
|
{{- end -}}
|
|
{{ $resources = $resources | append (resources.Get "css/print.css" | resources.ExecuteAsTemplate "print.css" .) -}}
|
|
{{- $css := $resources | resources.Concat "css/style.css" | minify -}}
|
|
<style>{{ $css.Content | safeCSS }}</style>
|
|
<meta name="robots" content="noindex,nofollow,nosnippet" />
|
|
<title>{{ .Title }}</title>
|
|
{{ if not (in site.BaseURL ".onion") -}}
|
|
{{ $icon_svg := resources.Get "/favicon.svg" | resources.Fingerprint "md5" }}
|
|
{{- printf `<link rel="icon" sizes="any" href="%s" type="image/svg+xml" />` $icon_svg.RelPermalink | safeHTML }}
|
|
{{- end }}
|
|
{{ $icon_192 := resources.Get "/favicon192.png" | resources.Fingerprint "md5" }}
|
|
{{- printf `<link rel="icon" sizes="192x192" href="%s" type="image/png" />` $icon_192.RelPermalink | safeHTML -}}
|
|
<meta name="color-scheme" content="light dark" />
|
|
<meta name="theme-color" content="#191919" media="(prefers-color-scheme:dark)" />
|
|
<meta name="theme-color" content="#fff" media="(prefers-color-scheme:light)" />
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<a href="#h1">Skip to content</a>
|
|
<nav aria-label="Global">
|
|
<ul>
|
|
<li>
|
|
<a rel="home" href="https://seirdy.one/">Seirdy's Home</a>
|
|
</li>
|
|
<li>
|
|
<a href="/posts/">Articles</a>
|
|
</li>
|
|
<li>
|
|
<a href="/notes/">Notes</a>
|
|
</li>
|
|
<li>
|
|
<a href="/bookmarks/">Bookmarks</a>
|
|
</li>
|
|
<li>
|
|
<a href="/about/">About</a>
|
|
</li>
|
|
<li>
|
|
<a href="/meta/">Meta</a>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
</header>
|
|
<main>
|
|
<h1 id="h1" tabindex="-1">{{ .Title }}</h1>
|
|
{{ partial "processed-content.html" . -}}
|
|
</main>
|
|
<footer>
|
|
<nav aria-label="site info">
|
|
<ul>
|
|
<li>
|
|
<a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a>
|
|
</li>
|
|
<li>
|
|
<a rel="source" href="{{ .Site.Params.src }}">Source code</a>
|
|
</li>
|
|
<li>
|
|
<a rel="alternate" href="http://wgq3bd2kqoybhstp77i3wrzbfnsyd27wt34psaja4grqiezqircorkyd.onion/">Tor mirror</a>
|
|
</li>
|
|
<li>
|
|
<a href="{{ site.BaseURL }}meta/privacy/">Privacy</a>
|
|
</li>
|
|
<li>
|
|
<a href="{{ site.BaseURL }}about/#location-seirdy-online">Contact</a>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
</footer>
|
|
</body>
|
|
</html>
|