summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamy Pesse <samypesse@gmail.com>2015-06-29 09:58:23 -0400
committerSamy Pesse <samypesse@gmail.com>2015-06-29 09:58:23 -0400
commitc3cdefc90a7439ea42e81d3a5cfbede2c24b2527 (patch)
tree780fde5efd32b9645244e949fa2383a1bd8f75d3
parent9c580e4989f104f095d9364b8c970e111c60fd1d (diff)
downloadgitbook-c3cdefc90a7439ea42e81d3a5cfbede2c24b2527.zip
gitbook-c3cdefc90a7439ea42e81d3a5cfbede2c24b2527.tar.gz
gitbook-c3cdefc90a7439ea42e81d3a5cfbede2c24b2527.tar.bz2
Simpler template for summary
-rw-r--r--theme/templates/website/includes/summary.html8
1 files changed, 1 insertions, 7 deletions
diff --git a/theme/templates/website/includes/summary.html b/theme/templates/website/includes/summary.html
index 312fc2d..a5bc3c4 100644
--- a/theme/templates/website/includes/summary.html
+++ b/theme/templates/website/includes/summary.html
@@ -4,21 +4,15 @@
{% if item.path and item.exists %}
{% if not item.external %}
<a href="{{ basePath }}/{{ item.path|contentLink }}">
- <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 }}">
+ {% endif %}
<i class="fa fa-check"></i>
{% if item.level != "0" %}
<b>{{ item.level }}.</b>
{% endif %}
{{ item.title }}
</a>
- {% endif %}
{% else %}
<span><b>{{ item.level }}.</b> {{ item.title }}</span>
{% endif %}