mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-17 19:25:32 -04:00
preload web fonts
This commit is contained in:
@@ -19,6 +19,8 @@
|
|||||||
<meta name="author" content="{{ .Site.Author.name }}">
|
<meta name="author" content="{{ .Site.Author.name }}">
|
||||||
{{ partial "head/open-graph" . }}
|
{{ partial "head/open-graph" . }}
|
||||||
|
|
||||||
|
{{ partialCached "head/preload" . }}
|
||||||
|
|
||||||
<style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
|
<style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
|
||||||
<style amp-custom>
|
<style amp-custom>
|
||||||
@font-face {
|
@font-face {
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
{{ partial "head/social-images" . -}}
|
{{ partial "head/social-images" . -}}
|
||||||
{{ partial "head/open-graph" . -}}
|
{{ partial "head/open-graph" . -}}
|
||||||
{{ partialCached "head/mobile" . -}}
|
{{ partialCached "head/mobile" . -}}
|
||||||
|
{{ partialCached "head/preload" . -}}
|
||||||
{{ partialCached "head/styles" . -}}
|
{{ partialCached "head/styles" . -}}
|
||||||
{{ partialCached "head/favicons" (dict "png_sizes" "192 48 32 16" "ico_sizes" "16 32 48") -}}
|
{{ partialCached "head/favicons" (dict "png_sizes" "192 48 32 16" "ico_sizes" "16 32 48") -}}
|
||||||
<link rel="manifest" href="{{ "site.webmanifest" | absURL }}">
|
<link rel="manifest" href="{{ "site.webmanifest" | absURL }}">
|
||||||
|
3
layouts/partials/head/preload.html
Normal file
3
layouts/partials/head/preload.html
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<link rel="preload" href="{{ "fonts/inter-regular-subset.woff2" | absURL }}" as="font" type="font/woff2" crossorigin>
|
||||||
|
<link rel="preload" href="{{ "fonts/inter-medium-subset.woff2" | absURL }}" as="font" type="font/woff2" crossorigin>
|
||||||
|
<link rel="preload" href="{{ "fonts/inter-bold-subset.woff2" | absURL }}" as="font" type="font/woff2" crossorigin>
|
Reference in New Issue
Block a user