diff options
author | Aaron O'Mullan <aaron.omullan@friendco.de> | 2014-06-16 00:09:48 -0700 |
---|---|---|
committer | Aaron O'Mullan <aaron.omullan@friendco.de> | 2014-06-16 00:09:48 -0700 |
commit | 4259283f32b50ab270548525914cd6793a8b5706 (patch) | |
tree | f0caf14e3ece7a5a770b94d8de0015bdd9601554 /theme | |
parent | 243d977cd674651a1111e8fca8f00fe61a85c2bc (diff) | |
download | gitbook-4259283f32b50ab270548525914cd6793a8b5706.zip gitbook-4259283f32b50ab270548525914cd6793a8b5706.tar.gz gitbook-4259283f32b50ab270548525914cd6793a8b5706.tar.bz2 |
Refactor Summary rendering
Introduction is no longer an edge case
Diffstat (limited to 'theme')
-rw-r--r-- | theme/templates/includes/book/summary.html | 15 |
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 %} |