summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-03-31 17:43:06 -0700
committerSamy Pessé <samypesse@gmail.com>2014-03-31 17:43:07 -0700
commit885e45105430f2f12e8c7efe429cbced76489472 (patch)
tree91cd46e99589f165e2b9388f8e7f95a70e8b3586 /templates
parenta7b8e24e7acd6a8007045d10d931ec0f3d8f2cb7 (diff)
downloadgitbook-885e45105430f2f12e8c7efe429cbced76489472.zip
gitbook-885e45105430f2f12e8c7efe429cbced76489472.tar.gz
gitbook-885e45105430f2f12e8c7efe429cbced76489472.tar.bz2
Mark as active current chapter
Diffstat (limited to 'templates')
-rw-r--r--templates/includes/book/summary.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/includes/book/summary.html b/templates/includes/book/summary.html
index c119cd6..2baab9a 100644
--- a/templates/includes/book/summary.html
+++ b/templates/includes/book/summary.html
@@ -8,7 +8,7 @@
</li>
<li class="divider"></li>
{% for item in summary.chapters %}
- <li>
+ <li {% if item._path == _input %}class="active"{% endif %}>
<a href="{{ basePath }}/{{ item.path }}">{{ item.title }}</a>
{% if item.articles.length > 0 %}
<ul class="articles">