aboutsummaryrefslogtreecommitdiff
path: root/templates/macros
diff options
context:
space:
mode:
authorJieiku2022-06-12 18:47:34 -0700
committerJieiku2022-06-12 18:47:34 -0700
commit9ac96c9c0e205584004faed5ca03040450606fb2 (patch)
treeb4b945dc2907e22b36d27f1e25c33c91cf4f8051 /templates/macros
parent6b9296d49aa4657054547b55607fdccab1741a58 (diff)
downloadabridge-9ac96c9c0e205584004faed5ca03040450606fb2.tar.gz
abridge-9ac96c9c0e205584004faed5ca03040450606fb2.tar.bz2
abridge-9ac96c9c0e205584004faed5ca03040450606fb2.zip
Lighthouse Fixes
Diffstat (limited to 'templates/macros')
-rw-r--r--templates/macros/head.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/macros/head.html b/templates/macros/head.html
index e5ee0ac..e0fb499 100644
--- a/templates/macros/head.html
+++ b/templates/macros/head.html
@@ -12,6 +12,10 @@
<link rel="stylesheet" href="{{ get_url(path=i, trailing_slash=false, cachebust=true) | safe }}" />
{%- endfor %}{%- endif %}
+{%- endmacro %}
+
+{%- macro stylesheets_preload() %}
+
{%- if config.extra.fonts %}{%- for i in config.extra.fonts %}
{%- if i.url is matching("^http[s]?://") %}
<link rel="preload" as="style" class="preStyle" href="{{ i.url | safe }}" crossorigin="anonymous" />