summaryrefslogtreecommitdiffstats
path: root/theme
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-08-18 21:53:07 -0700
committerSamy Pessé <samypesse@gmail.com>2014-08-18 21:53:07 -0700
commit6f1ef585bec7e169aacbd0c0116472334e1145c7 (patch)
tree14f19c07d58423c759659e8f23185adb27306983 /theme
parentd84acd0b82bb3cffa94d3ad591d99064efb45b7a (diff)
downloadgitbook-6f1ef585bec7e169aacbd0c0116472334e1145c7.zip
gitbook-6f1ef585bec7e169aacbd0c0116472334e1145c7.tar.gz
gitbook-6f1ef585bec7e169aacbd0c0116472334e1145c7.tar.bz2
Show index on glossary page
Diffstat (limited to 'theme')
-rw-r--r--theme/templates/glossary.html10
1 files changed, 8 insertions, 2 deletions
diff --git a/theme/templates/glossary.html b/theme/templates/glossary.html
index 539ec59..315d354 100644
--- a/theme/templates/glossary.html
+++ b/theme/templates/glossary.html
@@ -3,10 +3,16 @@
{% block title %}Glossary | {{ title }}{% endblock %}
{% block page_inner %}
-{% for item in glossary %}
-<section class="normal glossary" id="{{ item.name }}">
+{% for item in glossaryIndex %}
+<section class="normal glossary" id="{{ item.id }}">
<h2>{{ item.name }}</h2>
<p>{{ item.description }}</p>
+ <h4>Index</h4>
+ <ul class="glossary-index">
+ {% for file in item.files %}
+ <li><a href="{{ basePath }}/{{ file.path|mdLink }}">{{ file.title }}</a></li>
+ {% endfor %}
+ </ul>
</section>
{% endfor %}
{% endblock %}