summaryrefslogtreecommitdiffstats
path: root/theme
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-06-16 13:02:38 +0200
committerSamy Pessé <samypesse@gmail.com>2014-06-16 13:02:38 +0200
commit3d8b6e550a1ca6ed2c3f3f459c375d6c62432d91 (patch)
tree9eaf04a5adaaa568dd656b0b2de9f05730283c22 /theme
parent3245d7e430ee309961d40c1c03b4c15dac4ec232 (diff)
parent4c3dbca5ca12c2ea3806a17dc186deff5ce83b79 (diff)
downloadgitbook-3d8b6e550a1ca6ed2c3f3f459c375d6c62432d91.zip
gitbook-3d8b6e550a1ca6ed2c3f3f459c375d6c62432d91.tar.gz
gitbook-3d8b6e550a1ca6ed2c3f3f459c375d6c62432d91.tar.bz2
Merge pull request #319 from GitbookIO/enchancement/custom_intro
Enchancement/custom intro
Diffstat (limited to 'theme')
-rw-r--r--theme/templates/includes/book/summary.html15
1 files changed, 10 insertions, 5 deletions
diff --git a/theme/templates/includes/book/summary.html b/theme/templates/includes/book/summary.html
index 76ee192..2f9dc3f 100644
--- a/theme/templates/includes/book/summary.html
+++ b/theme/templates/includes/book/summary.html
@@ -5,11 +5,19 @@
{% if item.path %}
{% if !externalLink %}
<a href="{{ basePath }}/{{ item.path|mdLink }}">
- <i class="fa fa-check"></i> <b>{{ item.level }}.</b> {{ item.title }}
+ <i class="fa fa-check"></i>
+ {% if item.level !== "0" %}
+ <b>{{ item.level }}.</b>
+ {% endif %}
+ {{ item.title }}
</a>
{% else %}
<a target="_blank" href="{{ item.path }}">
- <i class="fa fa-check"></i> <b>{{ item.level }}.</b> {{ item.title }}
+ <i class="fa fa-check"></i>
+ {% if item.level !== "0" %}
+ <b>{{ item.level }}.</b>
+ {% endif %}
+ {{ item.title }}
</a>
{% endif %}
{% else %}
@@ -55,9 +63,6 @@
<li class="divider"></li>
{% endif %}
- <li data-level="0" data-path="index.html">
- <a href="{{ basePath }}/"><i class="fa fa-check"></i> Introduction</a>
- </li>
{{ articles(summary.chapters) }}
{% if options.links.gitbook !== false %}