summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Ellis <m.t.ellis@gmail.com>2014-07-09 16:06:55 +0100
committerMatt Ellis <m.t.ellis@gmail.com>2014-07-09 16:06:55 +0100
commit75a6ecbf528bbaf12f0d9036549d44f3ae0a0f7d (patch)
treebc930d6957181e4bcccac7365c537d18a16f6d38
parent520045441b9401fadfba2b1b03696bd15b60027d (diff)
downloadgitbook-75a6ecbf528bbaf12f0d9036549d44f3ae0a0f7d.zip
gitbook-75a6ecbf528bbaf12f0d9036549d44f3ae0a0f7d.tar.gz
gitbook-75a6ecbf528bbaf12f0d9036549d44f3ae0a0f7d.tar.bz2
Highlight active page in summary
-rw-r--r--theme/templates/includes/book/summary.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/theme/templates/includes/book/summary.html b/theme/templates/includes/book/summary.html
index 2f9dc3f..8dfdb70 100644
--- a/theme/templates/includes/book/summary.html
+++ b/theme/templates/includes/book/summary.html
@@ -1,7 +1,7 @@
{% macro articles(_articles) %}
{% for item in _articles %}
{% set externalLink = item.path|isExternalLink %}
- <li class="chapter {% if item._path == _input %}active{% endif %}" data-level="{{ item.level }}" {% if item.path && !externalLink %}data-path="{{ item.path|mdLink }}"{% endif %}>
+ <li class="chapter {% if item.path == _input %}active{% endif %}" data-level="{{ item.level }}" {% if item.path && !externalLink %}data-path="{{ item.path|mdLink }}"{% endif %}>
{% if item.path %}
{% if !externalLink %}
<a href="{{ basePath }}/{{ item.path|mdLink }}">