From ceececcd349331628c6f382617b0d69b309158fb Mon Sep 17 00:00:00 2001 From: Vincent Fiduccia Date: Fri, 22 Jun 2018 15:49:38 -0700 Subject: [PATCH] Only show "On this page" if there are links to show --- layouts/_default/list.html | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index c7e31123e75..2d702763752 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -92,11 +92,13 @@
{{ partial "page-edit.html" . }}
- - + {{ with .TableOfContents }} + + + {{ end }} {{ end }}