diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-07-11 17:14:36 -0700 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-07-11 17:14:36 -0700 |
commit | 356322e0ed8cfb1fc1547ee27d7143d5b2e22c22 (patch) | |
tree | 80cb7118541978d7043b400bfc50c17d572e780a | |
parent | 7a47049367738a86b94f266056c95f812c17d5aa (diff) | |
parent | 75a6ecbf528bbaf12f0d9036549d44f3ae0a0f7d (diff) | |
download | gitbook-356322e0ed8cfb1fc1547ee27d7143d5b2e22c22.zip gitbook-356322e0ed8cfb1fc1547ee27d7143d5b2e22c22.tar.gz gitbook-356322e0ed8cfb1fc1547ee27d7143d5b2e22c22.tar.bz2 |
Merge pull request #353 from citizenmatt/active_page
Highlight active page in summary
-rw-r--r-- | theme/templates/includes/book/summary.html | 2 |
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 }}"> |