aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJieiku2024-12-01 01:28:27 -0800
committerJieiku2024-12-01 01:28:27 -0800
commitf69dd7bea484866c9993ba06adb00ac912b5a3ba (patch)
tree1d40928f60e5045a06940991db26910d7c0428dc /templates
parent05a92f2ec6e8c86baafc7d970e8c992d395b9691 (diff)
downloadabridge-f69dd7bea484866c9993ba06adb00ac912b5a3ba.tar.gz
abridge-f69dd7bea484866c9993ba06adb00ac912b5a3ba.tar.bz2
abridge-f69dd7bea484866c9993ba06adb00ac912b5a3ba.zip
add per page stylesheets
Diffstat (limited to 'templates')
-rw-r--r--templates/partials/head.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/partials/head.html b/templates/partials/head.html
index 1b95cc8..668b811 100644
--- a/templates/partials/head.html
+++ b/templates/partials/head.html
@@ -21,6 +21,11 @@
<link rel="stylesheet" href="{{ get_url(path=i , trailing_slash=false, cachebust=true) | safe }}" />
{%- endfor %}{%- endif %}
+ {%- if page.extra.stylesheets %}{%- set pagestylesheets=page.extra.stylesheets -%}{%- endif %}
+ {%- if pagestylesheets %}{%- for i in pagestylesheets %}
+ <link rel="stylesheet" href="{{ get_url(path=i , trailing_slash=false, cachebust=true) | safe }}" />
+ {%- endfor %}{%- endif %}
+