Fix syntax highlighting, static dir and add back header template
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
parent
7bdd8253d3
commit
9fab21384d
21 changed files with 271 additions and 7 deletions
40
layouts/partials/header.html
Normal file
40
layouts/partials/header.html
Normal file
|
@ -0,0 +1,40 @@
|
|||
<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}}
|
Loading…
Add table
Add a link
Reference in a new issue