diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-22 21:52:13 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-01-22 21:52:13 +0100 |
commit | 0c8513801c131ec6e2c7b348403a4c66a9bf2a11 (patch) | |
tree | 0d30ae9e895d930ad2d7a9bed0c6fbee3d8e59b3 /theme | |
parent | 90789aa5b92a17825c6d98beced5abc3794f4d84 (diff) | |
download | gitbook-0c8513801c131ec6e2c7b348403a4c66a9bf2a11.zip gitbook-0c8513801c131ec6e2c7b348403a4c66a9bf2a11.tar.gz gitbook-0c8513801c131ec6e2c7b348403a4c66a9bf2a11.tar.bz2 |
Write glossary for website
Diffstat (limited to 'theme')
-rw-r--r-- | theme/templates/website/glossary.html | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/theme/templates/website/glossary.html b/theme/templates/website/glossary.html index 5841f5e..e19d1b9 100644 --- a/theme/templates/website/glossary.html +++ b/theme/templates/website/glossary.html @@ -3,16 +3,16 @@ {% block title %}Glossary | {{ title }}{% endblock %} {% block page_inner %} -{% for item in glossaryIndex %} -<section class="normal glossary" id="{{ item.id }}"> - <h2><a href="#{{ item.id }}">{{ item.name }}</a></h2> - <p>{{ item.description }}</p> - <h4>Index</h4> - <ul class="glossary-index"> - {% for file in item.files %} - <li><a href="{{ basePath }}/{{ file.path|contentLink }}"><span class="level">{{ file.level }}.</span> {{ file.title }}</a></li> - {% endfor %} - </ul> -</section> -{% endfor %} + {% for item in glossary %} + <section class="normal glossary" id="{{ item.id }}"> + <h2><a href="#{{ item.id }}">{{ item.name }}</a></h2> + <p>{{ item.description }}</p> + <h4>Index</h4> + <ul class="glossary-index"> + {% for file in item.files %} + <li><a href="{{ basePath }}/{{ file.path|contentLink }}"><span class="level">{{ file.level }}.</span> {{ file.title }}</a></li> + {% endfor %} + </ul> + </section> + {% endfor %} {% endblock %} |