summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-08-17 17:46:55 -0700
committerSamy Pessé <samypesse@gmail.com>2014-08-17 17:46:55 -0700
commit00496dbd09440d246ca903623ab093274d834e21 (patch)
tree3472eab95480027ef596556835a8a48e58f7208e
parent54fb9a58d7b2fc961b6f7eae614e4061f98bb70c (diff)
downloadgitbook-00496dbd09440d246ca903623ab093274d834e21.zip
gitbook-00496dbd09440d246ca903623ab093274d834e21.tar.gz
gitbook-00496dbd09440d246ca903623ab093274d834e21.tar.bz2
Add link to glossary if exists
-rw-r--r--theme/templates/includes/book/header.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/theme/templates/includes/book/header.html b/theme/templates/includes/book/header.html
index 5e1defd..ef2de60 100644
--- a/theme/templates/includes/book/header.html
+++ b/theme/templates/includes/book/header.html
@@ -2,6 +2,9 @@
<!-- Actions Left -->
<a href="#" class="btn pull-left toggle-summary" aria-label="Toggle summary"><i class="fa fa-align-justify"></i></a>
<a href="#" class="btn pull-left toggle-search" aria-label="Toggle search"><i class="fa fa-search"></i></a>
+ {% if glossary.length > 0 %}
+ <a href="{{ basePath }}/GLOSSARY.html" class="btn pull-left" aria-label="Open Glossary"><i class="fa fa-sort-alpha-asc"></i></a>
+ {% endif %}
<div id="font-settings-wrapper" class="dropdown pull-left">
<a href="#" class="btn toggle-dropdown" aria-label="Toggle font settings"><i class="fa fa-font"></i>
</a>