chiark
/
gitweb
/
~cjwatson
/
blog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fff70d
)
theme: make it possible to provide more than one extra CSS for a page.
author
Vladimír Vondruš
<mosra@centrum.cz>
Wed, 11 Oct 2017 19:39:04 +0000
(21:39 +0200)
committer
Vladimír Vondruš
<mosra@centrum.cz>
Wed, 11 Oct 2017 19:54:40 +0000
(21:54 +0200)
To make it consistent with CSS_FILES.
pelican-theme/templates/page.html
patch
|
blob
|
history
diff --git
a/pelican-theme/templates/page.html
b/pelican-theme/templates/page.html
index b760cef4d464785d93151988d9b7a98cf6ce2ad5..d516dd61951f59d5c0e05eac7abd232443307bb4 100644
(file)
--- a/
pelican-theme/templates/page.html
+++ b/
pelican-theme/templates/page.html
@@
-29,7
+29,10
@@
{% endif %}
<meta property="og:type" content="website" />
{% if page.css %}
- <link rel="stylesheet" href="{{ page.css|expand_link(page) }}" />
+ {% set styles = page.css.strip().split('\n') %}
+ {% for style in styles %}
+ <link rel="stylesheet" href="{{ style|expand_link(page) }}" />
+ {% endfor %}
{% endif %}
{% endblock %}