diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-09-17 13:10:36 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-09-17 13:10:36 +0200 |
commit | 60c721db40f627ff4df2b44599eb55ebe23e0415 (patch) | |
tree | c16bbb3fcba073e8160b9d4bd430ef2c389f82e0 /theme | |
parent | 11b299653f64eff2c997602bdd29cf07b6fa80e8 (diff) | |
download | gitbook-60c721db40f627ff4df2b44599eb55ebe23e0415.zip gitbook-60c721db40f627ff4df2b44599eb55ebe23e0415.tar.gz gitbook-60c721db40f627ff4df2b44599eb55ebe23e0415.tar.bz2 |
Enable css from plugins in page output
Diffstat (limited to 'theme')
-rw-r--r-- | theme/templates/page.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/theme/templates/page.html b/theme/templates/page.html index 89ffc24..5966cda 100644 --- a/theme/templates/page.html +++ b/theme/templates/page.html @@ -4,6 +4,13 @@ {% block style %} <link rel="stylesheet" href="{{ staticBase }}/print.css"> +{% for resource in plugins.resources.css %} + {% if resource.url %} + <link rel="stylesheet" href="{{ resource.url }}"> + {% else %} + <link rel="stylesheet" href="{{ staticBase }}/plugins/{{ resource.path }}"> + {% endif %} +{% endfor %} {% endblock %} |