1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-06-30 02:05:57 -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
@@ -1,19 +1,5 @@
{{/* Pull in JS processed by Webpack */}}
{{- define "__head_preload" -}}
{{ with partial "functions/webpack" (dict "context" . "src" "fonts/inter-subset.var.woff2") }}
<link rel="preload" href="{{ .src }}" as="font" type="font/woff2" crossorigin>
{{ end }}
{{ with partial "functions/webpack" (dict "context" . "src" "fonts/roboto-mono-subset.var.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 }}
{{- end -}}
{{- define "__body_js" -}}
{{ with partial "functions/webpack" (dict "context" . "src" "main.js") }}
<script async defer src="{{ .src }}"></script>