Skip to content

Commit f69dd7b

Browse files
committed
add per page stylesheets
1 parent 05a92f2 commit f69dd7b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

templates/partials/head.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
<link rel="stylesheet" href="{{ get_url(path=i , trailing_slash=false, cachebust=true) | safe }}" />
2222
{%- endfor %}{%- endif %}
2323

24+
{%- if page.extra.stylesheets %}{%- set pagestylesheets=page.extra.stylesheets -%}{%- endif %}
25+
{%- if pagestylesheets %}{%- for i in pagestylesheets %}
26+
<link rel="stylesheet" href="{{ get_url(path=i , trailing_slash=false, cachebust=true) | safe }}" />
27+
{%- endfor %}{%- endif %}
28+
2429

2530

2631

0 commit comments

Comments
 (0)