summaryrefslogtreecommitdiff
path: root/docs/_includes/preload-font-files.html
blob: f6bf15651a16b5b411524f1a956976871ecd4d8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{%

if site.safe == false %}{%
assign url_root = "/" %}{% else %}{%
assign url_root = "/inter/" %}{% endif %}{%

for file in site.static_files %}{%
  assign _path = file.path | remove_first: "/inter" %}{%
  if _path == "/font-files/Inter-Regular.woff2" %}{%
    assign font_v = file.modified_time | date: "%Y%m%d%H%M%S" %}{%
  endif %}{%
endfor

%}<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>