chiark / gitweb /
theme: make it possible to provide more than one extra CSS for a page.
authorVladimír Vondruš <mosra@centrum.cz>
Wed, 11 Oct 2017 19:39:04 +0000 (21:39 +0200)
committerVladimí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

index b760cef4d464785d93151988d9b7a98cf6ce2ad5..d516dd61951f59d5c0e05eac7abd232443307bb4 100644 (file)
   {% 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 %}