Use relative font path
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
7247705a29
commit
699337c32e
|
@ -51,7 +51,6 @@
|
||||||
for = "/*"
|
for = "/*"
|
||||||
|
|
||||||
[headers.values]
|
[headers.values]
|
||||||
Foo = "Bar"
|
|
||||||
Permissions-Policy = "interest-cohort=()"
|
Permissions-Policy = "interest-cohort=()"
|
||||||
Strict-Transport-Security = "max-age=63072000; includeSubDomains; preload"
|
Strict-Transport-Security = "max-age=63072000; includeSubDomains; preload"
|
||||||
X-Content-Type-Options = "nosniff"
|
X-Content-Type-Options = "nosniff"
|
||||||
|
|
|
@ -14,8 +14,8 @@
|
||||||
|
|
||||||
{% for font in config.extra.fonts %}
|
{% for font in config.extra.fonts %}
|
||||||
{% for style in ["Bold", "BoldItalic", "Italic", "Regular"] %}
|
{% for style in ["Bold", "BoldItalic", "Italic", "Regular"] %}
|
||||||
{% set font_path = 'font/' ~ font.path ~ '/' ~ font.name ~ '-' ~ style ~ '.woff2' %}
|
{% 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>
|
<link rel="preload" href="{{ font_path }}" as="font" type="font/woff2" crossorigin>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<link href="{{ get_url(path='style/fonts.css', cachebust=true) }}" rel="stylesheet preload" as="style" />
|
<link href="{{ get_url(path='style/fonts.css', cachebust=true) }}" rel="stylesheet preload" as="style" />
|
||||||
|
|
Loading…
Reference in New Issue