-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathhead.html
24 lines (16 loc) · 897 Bytes
/
head.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{{/* Add custom fonts (located in assets/) */}}
{{/* Regular Font */}}
{{ $font := resources.Get "atkinson-hyperlegible/atkinson-hyperlegible.css" | resources.Minify | resources.Fingerprint "sha512" }}
<link rel="preload" as="style" type="text/css" rel="stylesheet" href={{ $font.Permalink }} integrity={{ $font.Data.Integrity }} />
{{ if .Params.asciinema }}
<link rel="stylesheet" type="text/css" href="{{ .Site.BaseURL }}css/asciinema-player.css" />
{{ end }}
{{ template "_internal/twitter_cards.html" . }}
{{ template "_internal/opengraph.html" . }}
{{ if .HasShortcode "github_button" }}
<script async defer src="{{ .Site.BaseURL }}js/buttons.js"></script>
{{ end }}
{{ if .HasShortcode "youtubelite" }}
<script async defer src="{{ .Site.BaseURL }}js/lite-yt-embed.js"></script>
<link rel="stylesheet" type="text/css" href="{{ .Site.BaseURL }}css/lite-yt-embed.css" />
{{ end }}