diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-03-31 17:25:00 -0700 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-03-31 17:25:00 -0700 |
commit | 9c211ab2144b22546769b554d8dc8f1b68563daf (patch) | |
tree | d2048cece5f4fa6f3e00b0c6c4cdaab8ebf127de /templates/includes | |
parent | ce3e1030248e07bca2d4112b5754bdbca20a5229 (diff) | |
download | gitbook-9c211ab2144b22546769b554d8dc8f1b68563daf.zip gitbook-9c211ab2144b22546769b554d8dc8f1b68563daf.tar.gz gitbook-9c211ab2144b22546769b554d8dc8f1b68563daf.tar.bz2 |
Mark active chapter in summary
Diffstat (limited to 'templates/includes')
-rw-r--r-- | templates/includes/book/summary.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/includes/book/summary.html b/templates/includes/book/summary.html index 161ba79..c119cd6 100644 --- a/templates/includes/book/summary.html +++ b/templates/includes/book/summary.html @@ -13,7 +13,7 @@ {% if item.articles.length > 0 %} <ul class="articles"> {% for article in item.articles %} - <li> + <li {% if article._path == _input %}class="active"{% endif %}> <a href="{{ basePath }}/{{ article.path }}">{{ article.title }}</a> </li> {% endfor %} |