korhonen.cc/layouts/partials/header.html
Marko Korhonen 869649d6da
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/manual/woodpecker Pipeline was successful
Revert "Reapply "Re-enable serviceworker""
This reverts commit 3c1effe77c.
2024-01-28 13:28:51 +02:00

41 lines
1.5 KiB
HTML

<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<!-- Add CSS for rouge -->
<link rel="stylesheet" href="/rouge.css">
<!-- Add manifest and service worker for PWA support -->
<link rel="manifest" href="/site.webmanifest" />
<!-- <script> -->
<!-- if('serviceWorker' in navigator) { -->
<!-- navigator.serviceWorker -->
<!-- .register('/sw.js', { scope: '/' }); -->
<!-- } -->
<!-- </script> -->
<!-- umami analytics -->
<script async defer data-website-id="d79111e4-25ee-43d8-be20-5cd3a845a8cf" src="https://umami.korhonen.cc/ua9quuaW.js"></script>
<!-- IndieAuth -->
<link rel="pgpkey" href="https://openpgpkey.korhonen.cc/.well-known/openpgpkey/korhonen.cc/hu/u59jwso7wz4bwuizmgx1qfqhr1i9mq6e">
<link rel="openid.delegate" href="https://korhonen.cc" />
<link rel="openid.server" href="https://openid.indieauth.com/openid" />
{{ partial "helpers/style-bundle.html" . }}
<!--================= fab-icon =========================-->
{{/* add favicon only if the site author has provided the the favicon */}}
{{ if site.Params.logo.favicon }}
{{ $favicon := site.Params.logo.favicon }}
{{/* resize the favicon. don't resize svg because it is not supported */}}
{{ $favicon = resources.Get $favicon }}
{{ if and $favicon (ne $favicon.MediaType.SubType "svg") }}
{{ $favicon = $favicon.Resize "42x" }}
{{ end }}
{{ $favicon = $favicon.RelPermalink}}
<link rel="icon" type="image/png" href="{{ $favicon }}" />
{{end}}