1
0
Fork 0

add preloaded fonts
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Hamcha 2023-09-16 14:00:12 +02:00
parent d5fa512e60
commit 9359b3585d
Signed by: hamcha
GPG key ID: 1669C533B8CF6D89

View file

@ -4,6 +4,20 @@
{{ $title := print .Site.Title " | " .Title }} {{ if .IsHome }}{{ $title = {{ $title := print .Site.Title " | " .Title }} {{ if .IsHome }}{{ $title =
.Site.Title }}{{ end }} .Site.Title }}{{ end }}
<title>{{ $title }}</title> <title>{{ $title }}</title>
<link
rel="preload"
href="/fonts/IosevkaAile/woff2/iosevka-aile-bold.woff2"
as="font"
type="font/woff2"
crossorigin
/>
<link
rel="preload"
href="https://rsms.me/inter/font-files/Inter-Regular.woff2"
as="font"
type="font/woff2"
crossorigin
/>
{{ $normalize := resources.Get "css/normalize.css"| minify}} {{ $normalize := resources.Get "css/normalize.css"| minify}}
<link rel="stylesheet" href="{{ $normalize.RelPermalink }}" /> <link rel="stylesheet" href="{{ $normalize.RelPermalink }}" />
{{ $style := resources.Get "scss/main.scss" | resources.ToCSS (dict {{ $style := resources.Get "scss/main.scss" | resources.ToCSS (dict