commit f9888ad3173b9a8087440c870075095f0fdab0a0
parent c2f6b2db8a248f0e7b907c9a7039ef7c9b6db9f3
Author: corndog <cauchyn@firemail.cc>
Date: Wed, 15 May 2019 21:56:02 -0700
Add type, crossorigin attributes for preload fonts
Do not preload Charter Italic, less guaranteed to
be on every page.
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/site.tmpl b/site.tmpl
@@ -4,9 +4,8 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ if not (.Is "index.html") }}{{ with .Title }}{{ . }} | {{ end }}{{ end }}{{ .Site.Other.Title }}</title>
- <link rel="preload" as="font" href="{{ .Rel "static/charter/charter_regular.woff" }}">
- <link rel="preload" as="font" href="{{ .Rel "static/charter/charter_italic.woff" }}">
- <link rel="preload" as="font" href="{{ .Rel "static/cooperhewitt/CooperHewitt-Book.woff" }}">
+ <link rel="preload" as="font" type="font/woff" crossorigin href="{{ .Rel "static/charter/charter_regular.woff" }}">
+ <link rel="preload" as="font" type="font/woff" crossorigin href="{{ .Rel "static/cooperhewitt/CooperHewitt-Book.woff" }}">
<link rel="stylesheet" type="text/css" href="{{ .Rel "static/charter.css" }}">
<link rel="stylesheet" type="text/css" href="{{ .Rel "static/cooperhewitt.css" }}">
<link rel="stylesheet" type="text/css" href="{{ .Rel "static/style.css" }}">