summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-10-06 13:20:20 +0200
committerSamy Pessé <samypesse@gmail.com>2015-10-06 13:20:20 +0200
commitc19ab952e3a2e4298dbb53a7bc77169509b2c526 (patch)
tree7b53730d540bad2ebb0ba1a386eac1a838a50df9
parentecc29087b5022a27eb3e9dbef5a7075f67a72be1 (diff)
downloadgitbook-c19ab952e3a2e4298dbb53a7bc77169509b2c526.zip
gitbook-c19ab952e3a2e4298dbb53a7bc77169509b2c526.tar.gz
gitbook-c19ab952e3a2e4298dbb53a7bc77169509b2c526.tar.bz2
Only add page count on pdf/epub
-rw-r--r--theme/templates/ebook/summary.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/theme/templates/ebook/summary.html b/theme/templates/ebook/summary.html
index 5515ec2..237ae6e 100644
--- a/theme/templates/ebook/summary.html
+++ b/theme/templates/ebook/summary.html
@@ -15,7 +15,9 @@
{% else %}
<span>{{ item.title }}</span>
{% endif %}
+ {% if options.generator != "mobi" %}
<span class="page">{{ item.level }}</span>
+ {% endif %}
</span>
{% if item.articles.length > 0 %}
<ol>