Font inclusion

This commit is contained in:
Frank "PHiAX" Weggelaar 2026-03-13 12:57:36 +01:00
parent 2af412a4d5
commit e077ead902
2 changed files with 4 additions and 0 deletions

View file

@ -3,3 +3,4 @@
<meta name="description" content=""> <meta name="description" content="">
<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title> <title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title>
{{ partialCached "head/css.html" . }} {{ partialCached "head/css.html" . }}
{{ partialCached "head/fonts.html" . }}

View file

@ -0,0 +1,3 @@
{{ range resources.ByType "font" }}
<link rel="preload" href="{{ .RelPermalink }}" as="font" type="{{ .MediaType.Type }}" crossorigin>
{{ end }}