runtimeterror/layouts/partials/head.html

52 lines
2.4 KiB
HTML
Raw Normal View History

2023-08-20 19:47:39 +00:00
<title>{{ with .Title }}{{ . }} &ndash; {{end}}{{ .Site.Title }}</title>
2024-07-03 15:59:27 +00:00
<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 }}
2023-08-20 19:47:39 +00:00
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8"/>
2023-08-22 19:10:38 +00:00
{{ if or (.Site.Params.noindex) (.Params.noindex) }}<meta name="robots" content="noindex" /> {{ end }}
2023-08-20 19:47:39 +00:00
<!-- RSS -->
2023-12-22 22:04:21 +00:00
{{ 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 }}
2023-08-20 19:47:39 +00:00
{{ partialCached "favicon" . }}
2023-08-21 21:11:42 +00:00
{{ partial "opengraph" . }}
2023-08-20 19:47:39 +00:00
<!-- FontAwesome <https://fontawesome.com/> -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.2/css/all.min.css" integrity="sha512-1sCRPdkRXhBV2PBLUdRb4tMg1w2YPf37qatUFeS7zlBy7jJI8Lf4VHwWfZZfpXtYSLy85pkm9GaYVYMfw5BC1A==" crossorigin="anonymous" />
2023-12-21 14:21:01 +00:00
<!-- 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">
2023-08-20 19:47:39 +00:00
<!-- 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 }}">
2024-06-24 21:26:57 +00:00
<!-- CC BY-NC-SA 4.0 -->
<link rel="license" href="https://creativecommons.org/licenses/by-nc-sa/4.0/">
2024-01-20 02:14:26 +00:00
{{ if eq .Site.Params.analytics true }}
2024-06-18 16:15:31 +00:00
<!-- cabin analytics -->
2024-08-04 18:20:08 +00:00
<script async src="https://cabin.runtimeterror.dev/hello.js"></script>
2023-11-10 19:24:40 +00:00
{{ end }}
2023-10-21 21:13:44 +00:00
2023-11-09 04:14:10 +00:00
<!-- syntax highlighting -->
2023-10-21 21:13:44 +00:00
{{ if (findRE "<pre" .Content 1) }}
{{ $syntax := resources.Get "css/torchlight.css" | minify }}
2023-10-21 21:13:44 +00:00
<link href="{{ $syntax.RelPermalink }}" rel="stylesheet">
2023-11-05 01:49:39 +00:00
{{ $copyCss := resources.Get "css/code-copy-button.css" | minify }}
<link href="{{ $copyCss.RelPermalink }}" rel="stylesheet">
2023-10-21 21:13:44 +00:00
{{ end }}
<!-- typo text animation -->
2024-08-04 18:19:40 +00:00
<script src="https://res.runtimeterror.dev/js/typo.js" defer></script>