mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-11-27 01:02:17 +00:00
64 lines
No EOL
2.9 KiB
HTML
64 lines
No EOL
2.9 KiB
HTML
<title>{{ with .Title }}{{ . }} – {{end}}{{ .Site.Title }}</title>
|
|
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}">
|
|
{{ with .Site.Params.Author.fedi }}<meta property="fediverse:creator" content="{{ . }}" />{{ end }}
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta charset="UTF-8"/>
|
|
{{ if or (.Site.Params.noindex) (.Params.noindex) }}<meta name="robots" content="noindex" /> {{ end }}
|
|
|
|
<!-- RSS -->
|
|
{{ with .OutputFormats.Get "rss" -}}
|
|
{{ printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML }}
|
|
{{ end }}
|
|
|
|
<!-- verification links -->
|
|
{{ if .IsHome }}
|
|
{{ range $item := .Site.Params.verifyLinks }}
|
|
<link rel="me" title="{{ $item.title }}" href="{{ $item.url }}">
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
{{ partialCached "favicon" . }}
|
|
{{ partial "opengraph" . }}
|
|
|
|
<!-- load theme preference asap -->
|
|
<script>
|
|
(function() {
|
|
var savedTheme = localStorage.getItem('theme');
|
|
if (savedTheme) {
|
|
document.documentElement.setAttribute('data-theme', savedTheme);
|
|
} else if (window.matchMedia && window.matchMedia('(prefers-color-scheme: light)').matches) {
|
|
document.documentElement.setAttribute('data-theme', 'light');
|
|
}
|
|
})();
|
|
</script>
|
|
|
|
<!--!Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.-->
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg==" crossorigin="anonymous" />
|
|
|
|
<!-- ForkAwesome <https://forkaweso.me/> -->
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/fork-awesome@1.2.0/css/fork-awesome.min.css" integrity="sha256-XoaMnoYC5TH6/+ihMEnospgm0J1PM/nioxbOUdnM8HY=" crossorigin="anonymous">
|
|
|
|
<!-- risotto theme -->
|
|
<link rel="stylesheet" href="{{ printf "css/palettes/%s.css" (.Site.Params.theme.palette | default "base16-dark") | absURL }}">
|
|
<link rel="stylesheet" href="{{ "css/risotto.css" | absURL }}">
|
|
<link rel="stylesheet" href="{{ "css/custom.css" | absURL }}">
|
|
|
|
<!-- CC BY-NC-SA 4.0 -->
|
|
<link rel="license" href="https://creativecommons.org/licenses/by-nc-sa/4.0/">
|
|
|
|
{{ if eq .Site.Params.analytics true }}
|
|
<!-- cabin analytics -->
|
|
<script async src="https://cabin.runtimeterror.dev/hello.js"></script>
|
|
{{ end }}
|
|
|
|
<!-- syntax highlighting -->
|
|
{{ if (findRE "<pre" .Content 1) }}
|
|
{{ $syntax := resources.Get "css/torchlight.css" | minify }}
|
|
<link href="{{ $syntax.RelPermalink }}" rel="stylesheet">
|
|
{{ $copyCss := resources.Get "css/code-copy-button.css" | minify }}
|
|
<link href="{{ $copyCss.RelPermalink }}" rel="stylesheet">
|
|
{{ end }}
|
|
|
|
<!-- typo text animation -->
|
|
<script src="https://res.runtimeterror.dev/js/typo.js" defer></script> |