mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-19 04:35:31 -04:00
reorganize external static assets into vendor folder (#99)
with legacy redirects via Netlify for now
This commit is contained in:
@@ -26,8 +26,8 @@
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: url("{{ "fonts/inter-regular-subset.woff2" | absURL }}") format("woff2"),
|
||||
url("{{ "fonts/inter-regular-subset.woff" | absURL }}") format("woff");
|
||||
src: url("{{ "vendor/inter/inter-regular-subset.woff2" | absURL }}") format("woff2"),
|
||||
url("{{ "vendor/inter/inter-regular-subset.woff" | absURL }}") format("woff");
|
||||
unicode-range: U+0000-00FF, U+2000-206F, U+20A0-20CF,
|
||||
U+2190-21FF, U+2200-22FF, U+2122;
|
||||
}
|
||||
@@ -36,8 +36,8 @@
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-display: swap;
|
||||
src: url("{{ "fonts/inter-medium-subset.woff2" | absURL }}") format("woff2"),
|
||||
url("{{ "fonts/inter-medium-subset.woff" | absURL }}") format("woff");
|
||||
src: url("{{ "vendor/inter/inter-medium-subset.woff2" | absURL }}") format("woff2"),
|
||||
url("{{ "vendor/inter/inter-medium-subset.woff" | absURL }}") format("woff");
|
||||
unicode-range: U+0000-00FF, U+2000-206F, U+20A0-20CF,
|
||||
U+2190-21FF, U+2200-22FF, U+2122;
|
||||
}
|
||||
@@ -46,8 +46,8 @@
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-display: swap;
|
||||
src: url("{{ "fonts/inter-bold-subset.woff2" | absURL }}") format("woff2"),
|
||||
url("{{ "fonts/inter-bold-subset.woff" | absURL }}") format("woff");
|
||||
src: url("{{ "vendor/inter/inter-bold-subset.woff2" | absURL }}") format("woff2"),
|
||||
url("{{ "vendor/inter/inter-bold-subset.woff" | absURL }}") format("woff");
|
||||
unicode-range: U+0000-00FF, U+2000-206F, U+20A0-20CF,
|
||||
U+2190-21FF, U+2200-22FF, U+2122;
|
||||
}
|
||||
@@ -56,8 +56,8 @@
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: url("{{ "fonts/hack-regular-subset.woff2" | absURL }}") format("woff2"),
|
||||
url("{{ "fonts/hack-regular-subset.woff" | absURL }}") format("woff");
|
||||
src: url("{{ "vendor/hack/hack-regular-subset.woff2" | absURL }}") format("woff2"),
|
||||
url("{{ "vendor/hack/hack-regular-subset.woff" | absURL }}") format("woff");
|
||||
}
|
||||
|
||||
body {
|
||||
|
@@ -6,13 +6,9 @@
|
||||
X-Content-Type-Options: nosniff
|
||||
X-Frame-Options: sameorigin
|
||||
|
||||
# Super long cache for web fonts (one year)
|
||||
/fonts/*
|
||||
Cache-Control: max-age=31536000, public, immutable, no-transform
|
||||
|
||||
# Super long cache for Twemojis (one year)
|
||||
/twemoji/*
|
||||
Cache-Control: max-age=31536000, public, immutable, no-transform
|
||||
# Super long cache for web fonts and Twemojis (one year)
|
||||
/vendor/*
|
||||
Cache-Control: max-age=31536000, public, immutable
|
||||
|
||||
# Recommended MIME type for PWA manifests
|
||||
# https://github.com/w3c/manifest/issues/689
|
||||
|
@@ -7,6 +7,6 @@
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
<link rel="preload" href="{{ "fonts/inter-regular-subset.woff2" | absURL }}" as="font" type="font/woff2" crossorigin="anonymous">
|
||||
<link rel="preload" href="{{ "fonts/inter-medium-subset.woff2" | absURL }}" as="font" type="font/woff2" crossorigin="anonymous">
|
||||
<link rel="preload" href="{{ "fonts/inter-bold-subset.woff2" | absURL }}" as="font" type="font/woff2" crossorigin="anonymous">
|
||||
<link rel="preload" href="{{ "vendor/inter/inter-regular-subset.woff2" | absURL }}" as="font" type="font/woff2" crossorigin="anonymous">
|
||||
<link rel="preload" href="{{ "vendor/inter/inter-medium-subset.woff2" | absURL }}" as="font" type="font/woff2" crossorigin="anonymous">
|
||||
<link rel="preload" href="{{ "vendor/inter/inter-bold-subset.woff2" | absURL }}" as="font" type="font/woff2" crossorigin="anonymous">
|
||||
|
@@ -1,2 +1,2 @@
|
||||
<script src="{{ "/twemoji/twemoji.min.js" | absURL }}"></script>
|
||||
<script>twemoji.parse(document.body,{{ dict "base" ("/" | absURL) "folder" "twemoji/svg" "ext" ".svg" | jsonify | safeJS }})</script>
|
||||
<script src="{{ "/vendor/emoji/twemoji.min.js" | absURL }}"></script>
|
||||
<script>twemoji.parse(document.body,{{ dict "base" ("/" | absURL) "folder" "vendor/emoji/svg" "ext" ".svg" | jsonify | safeJS }})</script>
|
||||
|
Reference in New Issue
Block a user