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:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user