diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-03-31 19:41:27 -0700 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-03-31 19:41:29 -0700 |
commit | 642a338cb062f39628407c136892fe5f328366f9 (patch) | |
tree | ff8cf21e51c049ebe562f3790b54036d0ff41de9 /templates/includes | |
parent | 77136705fc5e625ba4e823e7b81f7f0e0e891a54 (diff) | |
download | gitbook-642a338cb062f39628407c136892fe5f328366f9.zip gitbook-642a338cb062f39628407c136892fe5f328366f9.tar.gz gitbook-642a338cb062f39628407c136892fe5f328366f9.tar.bz2 |
Mark levels done in local storage
Diffstat (limited to 'templates/includes')
-rw-r--r-- | templates/includes/book/summary.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/includes/book/summary.html b/templates/includes/book/summary.html index 2baab9a..4915b72 100644 --- a/templates/includes/book/summary.html +++ b/templates/includes/book/summary.html @@ -1,6 +1,6 @@ <div class="book-summary"> <ul class="summary"> - <li> + <li data-level="0"> <a href="{{ basePath }}/README.html">Introduction</a> </li> <li> @@ -8,12 +8,12 @@ </li> <li class="divider"></li> {% for item in summary.chapters %} - <li {% if item._path == _input %}class="active"{% endif %}> + <li {% if item._path == _input %}class="active"{% endif %} data-level="{{ item.level }}"> <a href="{{ basePath }}/{{ item.path }}">{{ item.title }}</a> {% if item.articles.length > 0 %} <ul class="articles"> {% for article in item.articles %} - <li {% if article._path == _input %}class="active"{% endif %}> + <li {% if article._path == _input %}class="active"{% endif %} data-level="{{ article.level }}"> <a href="{{ basePath }}/{{ article.path }}">{{ article.title }}</a> </li> {% endfor %} |