chiark / gitweb /
theme: treat CSS file links as possibly SITEURL-relative as well.
authorVladimír Vondruš <mosra@centrum.cz>
Thu, 26 Oct 2017 20:59:51 +0000 (22:59 +0200)
committerVladimír Vondruš <mosra@centrum.cz>
Thu, 26 Oct 2017 20:59:51 +0000 (22:59 +0200)
pelican-theme/templates/base.html

index b30071251f47285249bfa29abef1a63dedf50625..0785bc5344a877efa34a760061f12f6a3485b263 100644 (file)
@@ -4,7 +4,7 @@
   {% block head %}
   <title>{% block title %}{{ SITENAME }}{% endblock title %}</title>
   {% for href in CSS_FILES %}
-  <link rel="stylesheet" href="{{ href }}" />
+  <link rel="stylesheet" href="{{ href|format_siteurl }}" />
   {% endfor %}
   <meta name="viewport" content="width=device-width, initial-scale=1.0" />
   {% if THEME_COLOR %}