aboutsummaryrefslogtreecommitdiff
path: root/templates/macros/head.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/macros/head.html')
-rw-r--r--templates/macros/head.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/macros/head.html b/templates/macros/head.html
index 3ea785a..2c18807 100644
--- a/templates/macros/head.html
+++ b/templates/macros/head.html
@@ -4,11 +4,11 @@
{%- macro resource() %}
-{%- if config.extra.fonts_load and config.extra.fonts %}{%- for i in config.extra.fonts %}
+{%- if config.extra.fonts %}{%- for i in config.extra.fonts %}
{%- if i.url is matching("^http[s]?://") %}
- <link rel="preload" href="{{ i.url | safe }}" as="style" onload="this.onload=null;this.rel='stylesheet'" crossorigin="anonymous">
+ <link rel="preload" as="style" href="{{ i.url | safe }}" onload="this.onload=null;this.rel='stylesheet'" crossorigin="anonymous">
{%- else %}
- <link rel="preload" href="{{ get_url(path=i.url, trailing_slash=false) }}" as="style" onload="this.onload=null;this.rel='stylesheet'" crossorigin="anonymous">
+ <link rel="preload" as="font" href="{{ get_url(path=i.url, trailing_slash=false) | safe }}" type="font/woff2" crossorigin>
{%- endif %}
{%- endfor %}{%- endif %}