Skip to content

Commit 75c1cde

Browse files
Convert GoudyInitialen font from TTF to WOFF2 and preload
1 parent 01c220f commit 75c1cde

File tree

4 files changed

+2
-1
lines changed

4 files changed

+2
-1
lines changed

assets/css/fonts.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@
440440
/* GoudyInitialen */
441441
@font-face {
442442
font-family: "GoudyInitialen";
443-
src: url("/fonts/GoudyInitialen.ttf") format("truetype");
443+
src: url("/fonts/GoudyInitialen.woff2") format("woff2");
444444
font-weight: 400;
445445
font-style: normal;
446446
font-display: swap;

layouts/baseof.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
{{ end }}
2626
<link rel="preload" href="/fonts/alegreya-normal-latin.woff2" as="font" type="font/woff2" crossorigin>
2727
<link rel="preload" href="/fonts/alegreya-sc-normal-700-latin.woff2" as="font" type="font/woff2" crossorigin>
28+
<link rel="preload" href="/fonts/GoudyInitialen.woff2" as="font" type="font/woff2" crossorigin>
2829
{{ with resources.Get "js/instantpage.js" | minify | fingerprint }}
2930
<script defer src="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"></script>
3031
{{ end }}

static/fonts/GoudyInitialen.ttf

-266 KB
Binary file not shown.

static/fonts/GoudyInitialen.woff2

140 KB
Binary file not shown.

0 commit comments

Comments
 (0)