website: fix paths for font preload directives

This commit is contained in:
Rasmus Andersson 2019-02-03 11:43:30 -08:00
parent c6e265a28d
commit bd20ad5232

View file

@ -1,2 +1,9 @@
<link rel="preload" href="/font-files/Inter-upright.var.woff2?v=3.3" as="font" type="font/woff2" crossorigin> {%
<link rel="preload" href="/font-files/Inter-italic.var.woff2?v=3.3" as="font" type="font/woff2" crossorigin>
capture url_root
%}{% if site.safe == false %}/{% else %}/inter/{% endif
%}{%
endcapture
%}<link rel="preload" href="{{url_root}}font-files/Inter-upright.var.woff2?v=3.3" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="{{url_root}}font-files/Inter-italic.var.woff2?v=3.3" as="font" type="font/woff2" crossorigin>