From 4259283f32b50ab270548525914cd6793a8b5706 Mon Sep 17 00:00:00 2001 From: Aaron O'Mullan Date: Mon, 16 Jun 2014 00:09:48 -0700 Subject: [PATCH] Refactor Summary rendering Introduction is no longer an edge case --- theme/templates/includes/book/summary.html | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/theme/templates/includes/book/summary.html b/theme/templates/includes/book/summary.html index 76ee19234..2f9dc3f39 100644 --- a/theme/templates/includes/book/summary.html +++ b/theme/templates/includes/book/summary.html @@ -5,11 +5,19 @@ {% if item.path %} {% if !externalLink %} - {{ item.level }}. {{ item.title }} + + {% if item.level !== "0" %} + {{ item.level }}. + {% endif %} + {{ item.title }} {% else %} - {{ item.level }}. {{ item.title }} + + {% if item.level !== "0" %} + {{ item.level }}. + {% endif %} + {{ item.title }} {% endif %} {% else %} @@ -55,9 +63,6 @@
  • {% endif %} -
  • - Introduction -
  • {{ articles(summary.chapters) }} {% if options.links.gitbook !== false %}