aboutsummaryrefslogtreecommitdiff
path: root/templates/macros/head.html
diff options
context:
space:
mode:
authorJieiku2022-05-31 01:11:55 -0700
committerJieiku2022-05-31 01:11:55 -0700
commita7305f7eeb72df69e80f6a4a6cdab48dceb6f348 (patch)
tree03c527b8c08682d5dc92deea70da16b177dadc38 /templates/macros/head.html
parent92a95518b6649a7ed427d486a41935fbd041a9c2 (diff)
downloadabridge-a7305f7eeb72df69e80f6a4a6cdab48dceb6f348.tar.gz
abridge-a7305f7eeb72df69e80f6a4a6cdab48dceb6f348.tar.bz2
abridge-a7305f7eeb72df69e80f6a4a6cdab48dceb6f348.zip
ImageHover Shortcode, Font Resources
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 %}