Fix display font flash
All checks were successful
Deploy Website / build-and-deploy (push) Successful in 7s

This commit is contained in:
Akshay Kolli
2026-07-02 16:45:34 -07:00
parent ff7ea74129
commit 5e22de5cce
3 changed files with 6 additions and 3 deletions

View File

@@ -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" }}

View File

@@ -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 {

Binary file not shown.