runtimeterror/layouts/partials/head.html

49 lines
2.3 KiB
HTML
Raw Normal View History

2023-08-20 19:47:39 +00:00
<title>{{ with .Title }}{{ . }} &ndash; {{end}}{{ .Site.Title }}</title>
{{ with .Site.Params.about }}<meta name="description" content="{{ .description }}">{{ end }}
<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
<!-- Academicons <https://jpswalsh.github.io/academicons/> -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/academicons/1.9.1/css/academicons.min.css" integrity="sha512-b1ASx0WHgVFL5ZQhTgiPWX+68KjS38Jk87jg7pe+qC7q9YkEtFq0z7xCglv7qGIs/68d3mAp+StfC8WKC5SSAg==" 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 }}">
2024-01-20 02:14:26 +00:00
{{ if eq .Site.Params.analytics true }}
2024-01-19 22:13:12 +00:00
<!-- tinylytics -->
2024-01-23 19:24:10 +00:00
<script src="https://tinylytics.app/embed/z4bwvaCBkF39NcDDLsRu.js?kudos=🎉&webring=avatars" defer></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 }}