diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-04-19 19:31:02 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-04-19 19:31:02 +0200 |
commit | fb14caf5b3cfc321910ccb3ff57082dd7a43e51a (patch) | |
tree | d4f4a81043721709b35dabee32be78f4a43a23a4 /theme/templates | |
parent | cf51772f541ae09265f37ff0662da529ca857d4f (diff) | |
download | gitbook-fb14caf5b3cfc321910ccb3ff57082dd7a43e51a.zip gitbook-fb14caf5b3cfc321910ccb3ff57082dd7a43e51a.tar.gz gitbook-fb14caf5b3cfc321910ccb3ff57082dd7a43e51a.tar.bz2 |
Add resources to site build
Diffstat (limited to 'theme/templates')
-rw-r--r-- | theme/templates/site.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/theme/templates/site.html b/theme/templates/site.html index e40662c..5e5bfb2 100644 --- a/theme/templates/site.html +++ b/theme/templates/site.html @@ -35,3 +35,17 @@ </div> </div> {% endblock %} + +{% block javascript %} +{% parent %} +{% for resource in plugins.resources.js %} +<script src="{{ staticBase }}/plugins/{{ resource.id }}.js"></script> +{% endfor %} +{% endblock %} + +{% block style %} +{% parent %} +{% for resource in plugins.resources.css %} +<link rel="stylesheet" href="{{ staticBase }}/plugins/{{ resource.id }}.css"> +{% endfor %} +{% endblock %} |