about summary refs log tree commit diff
path: root/layouts/partials/head.html
blob: be5ae3013036a28e538a8fec5a9e6b8064eb1a8d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!-- Basic stuff -->
<meta charset="utf-8">
<meta name="HandheldFriendly" content="True">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="referrer" content="no-referrer">

<meta name="color-scheme" content="dark light">

<title>{{ .Title }} - {{ .Site.Title }}</title>
<meta name="description" content="{{ .Site.Params.Description }}">

{{ with .OutputFormats.Get "rss" -}}
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}"
                       href="{{ .Permalink}}" title="$.Site.Title" />
{{ end -}}

<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">

{{ $main := resources.Get "css/main.css"}}
{{ $dark := resources.Get "css/dark.css" }}
{{ $light := resources.Get "css/light.css" }}
{{ $syntax_dark := resources.Get "css/syntax-dark.css" }}
{{ $syntax_light := resources.Get "css/syntax-light.css" }}
{{ $style := slice $main $dark $light $syntax_dark $syntax_light | resources.Concat "css/style.css" | minify | fingerprint }}
<link rel="stylesheet" type="text/css" href="{{ $style.RelPermalink }}">

{{ template "_internal/opengraph.html" . }}