Use relative font path
continuous-integration/drone/push Build is passing Details

pull/1/head
mat ess 2022-10-20 19:16:13 -04:00
parent 7247705a29
commit 699337c32e
2 changed files with 2 additions and 3 deletions

View File

@ -51,7 +51,6 @@
for = "/*"
[headers.values]
Foo = "Bar"
Permissions-Policy = "interest-cohort=()"
Strict-Transport-Security = "max-age=63072000; includeSubDomains; preload"
X-Content-Type-Options = "nosniff"

View File

@ -14,8 +14,8 @@
{% for font in config.extra.fonts %}
{% for style in ["Bold", "BoldItalic", "Italic", "Regular"] %}
{% set font_path = 'font/' ~ font.path ~ '/' ~ font.name ~ '-' ~ style ~ '.woff2' %}
<link rel="preload" href="{{ get_url(path=font_path) }}" as="font" type="font/woff2" crossorigin>
{% set font_path = '/font/' ~ font.path ~ '/' ~ font.name ~ '-' ~ style ~ '.woff2' %}
<link rel="preload" href="{{ font_path }}" as="font" type="font/woff2" crossorigin>
{% endfor %}
{% endfor %}
<link href="{{ get_url(path='style/fonts.css', cachebust=true) }}" rel="stylesheet preload" as="style" />