Fix display font flash
All checks were successful
Deploy Website / build-and-deploy (push) Successful in 7s
All checks were successful
Deploy Website / build-and-deploy (push) Successful in 7s
This commit is contained in:
@@ -18,7 +18,7 @@
|
|||||||
<link rel="icon" type="image/png" sizes="50x50" href="{{ "favicon.png" | relURL }}">
|
<link rel="icon" type="image/png" sizes="50x50" href="{{ "favicon.png" | relURL }}">
|
||||||
<link rel="alternate" type="application/rss+xml" title="{{ site.Title }}" href="{{ "index.xml" | absURL }}">
|
<link rel="alternate" type="application/rss+xml" title="{{ site.Title }}" href="{{ "index.xml" | absURL }}">
|
||||||
|
|
||||||
<link rel="preload" href="{{ "fonts/VT323-Regular.ttf" | relURL }}" as="font" type="font/ttf" crossorigin>
|
<link rel="preload" href="{{ "fonts/VT323-Regular.woff" | relURL }}" as="font" type="font/woff" crossorigin>
|
||||||
<style>{{ readFile "static/css/main.css" | safeCSS }}</style>
|
<style>{{ readFile "static/css/main.css" | safeCSS }}</style>
|
||||||
|
|
||||||
{{ if .Param "math" }}
|
{{ if .Param "math" }}
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
@font-face {
|
@font-face {
|
||||||
font-family: "VT323 Local";
|
font-family: "VT323 Local";
|
||||||
src: url("/fonts/VT323-Regular.ttf") format("truetype");
|
src:
|
||||||
font-display: swap;
|
url("/fonts/VT323-Regular.woff") format("woff"),
|
||||||
|
url("/fonts/VT323-Regular.ttf") format("truetype");
|
||||||
|
font-display: block;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
unicode-range: U+0020-007E, U+00A0, U+2013-2014, U+2018-2019, U+201C-201D, U+2026;
|
||||||
}
|
}
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
|
|||||||
BIN
static/fonts/VT323-Regular.woff
Normal file
BIN
static/fonts/VT323-Regular.woff
Normal file
Binary file not shown.
Reference in New Issue
Block a user