+{{- if .RegularPages -}}
+{{- end -}}
-{{ $indexScratch := .Scratch }}
-{{ range .Sections }}
-{{ $indexScratch.Add "sections" (slice . ) }}
-{{ end }}
-
-{{- range ($indexScratch.Get "sections").ByTitle -}}
-{{ .Title }}{{- if .Draft -}} :: Draft {{- end -}}
+{{- range .Sections.ByTitle -}}
+{{ .Title }}{{- if .Draft -}} :: Draft{{- end -}}
{{- end -}}
diff --git a/layouts/book/chapters.html b/layouts/book/chapters.html
index 856d3da..42b105c 100644
--- a/layouts/book/chapters.html
+++ b/layouts/book/chapters.html
@@ -15,7 +15,7 @@
diff --git a/layouts/book/volumes.html b/layouts/book/volumes.html
index a55499c..dc32104 100644
--- a/layouts/book/volumes.html
+++ b/layouts/book/volumes.html
@@ -15,23 +15,24 @@
+{{- if .RegularPages -}}
+{{- end -}}
+{{- if .Sections -}}
+{{- end -}}
+
{{ partial "footer.html" . }}
diff --git a/layouts/index.html b/layouts/index.html
index f851398..ba63012 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -15,7 +15,7 @@
{{ if .IsNode }}