diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-14 22:19:40 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-01-14 22:19:40 +0100 |
commit | 3382f1b0840a7759508357acf88d770f2c5bcaf2 (patch) | |
tree | 56f1041ae643392e44a6053b4354152a9bd3a7b5 /theme | |
parent | 7d90cd2a9ea729566118f617f0d5674a02d04652 (diff) | |
download | gitbook-3382f1b0840a7759508357acf88d770f2c5bcaf2.zip gitbook-3382f1b0840a7759508357acf88d770f2c5bcaf2.tar.gz gitbook-3382f1b0840a7759508357acf88d770f2c5bcaf2.tar.bz2 |
Include styles in website format
Diffstat (limited to 'theme')
-rw-r--r-- | theme/templates/website/page.html | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/theme/templates/website/page.html b/theme/templates/website/page.html index 1d5db62..91f2162 100644 --- a/theme/templates/website/page.html +++ b/theme/templates/website/page.html @@ -66,12 +66,15 @@ require(["gitbook"], function(gitbook) { {% endblock %} {% block style %} -<link rel="stylesheet" href="{{ staticBase }}/style.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 %} + <link rel="stylesheet" href="{{ staticBase }}/style.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 %} + {% for style in styles %} + <link rel="stylesheet" href="{{ basePath }}/{{ style }}"> + {% endfor %} {% endblock %} |