summaryrefslogtreecommitdiffstats
path: root/templates/includes
diff options
context:
space:
mode:
Diffstat (limited to 'templates/includes')
-rw-r--r--templates/includes/book/summary.html6
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 %}