1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-06-30 01:06:00 -04:00

simplify webfonts by pulling them straight from NPM

This commit is contained in:
2021-10-26 12:57:26 -04:00
parent f17f1fc329
commit 5b78d8b4b7
30 changed files with 407 additions and 197 deletions
+11 -1
View File
@@ -1 +1,11 @@
{{ template "__head_preload" . }}
{{ with partial "functions/webpack" (dict "context" . "src" "fonts/inter-latin-variable-full-normal.woff2") }}
<link rel="preload" href="{{ .src }}" as="font" type="font/woff2" crossorigin>
{{ end }}
{{ with partial "functions/webpack" (dict "context" . "src" "fonts/roboto-mono-latin-variable-wghtOnly-normal.woff2") }}
<link rel="preload" href="{{ .src }}" as="font" type="font/woff2" crossorigin>
{{ end }}
{{ with partial "functions/webpack" (dict "context" . "src" "main.js") }}
<link rel="preload" href="{{ .src }}" as="script">
{{ end }}