diff options
| author | Jieiku | 2022-05-31 01:11:55 -0700 |
|---|---|---|
| committer | Jieiku | 2022-05-31 01:11:55 -0700 |
| commit | a7305f7eeb72df69e80f6a4a6cdab48dceb6f348 (patch) | |
| tree | 03c527b8c08682d5dc92deea70da16b177dadc38 /templates/macros/head.html | |
| parent | 92a95518b6649a7ed427d486a41935fbd041a9c2 (diff) | |
| download | abridge-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.html | 6 |
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 %} |
