aboutsummaryrefslogtreecommitdiffstats
path: root/code/frontpage/layouts/partials/head/resource-hints.html
diff options
context:
space:
mode:
Diffstat (limited to 'code/frontpage/layouts/partials/head/resource-hints.html')
-rw-r--r--code/frontpage/layouts/partials/head/resource-hints.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/code/frontpage/layouts/partials/head/resource-hints.html b/code/frontpage/layouts/partials/head/resource-hints.html
new file mode 100644
index 0000000..6ebcdeb
--- /dev/null
+++ b/code/frontpage/layouts/partials/head/resource-hints.html
@@ -0,0 +1,4 @@
+{{ if .Site.Params.options.kaTex -}}
+<link rel="preload" as="font" href="{{ " fonts/KaTeX_Main-Regular.woff2" | absURL }}" type="font/woff2" crossorigin>
+<link rel="preload" as="font" href="{{ " fonts/KaTeX_Math-Italic.woff2" | absURL }}" type="font/woff2" crossorigin>
+{{ end -}} \ No newline at end of file