From aa597330a260e9de55a3c2f483afa66ff82aff38 Mon Sep 17 00:00:00 2001 From: Daniel Wagner-Hall Date: Tue, 2 Jan 2024 00:08:40 +0000 Subject: [PATCH] Don't show toc outline if no pages to show Otherwise we get a weird blue box displayed on pages with no .Pages. --- website/layouts/_default/list.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/website/layouts/_default/list.html b/website/layouts/_default/list.html index 902a0af8c..c1eeb43b7 100644 --- a/website/layouts/_default/list.html +++ b/website/layouts/_default/list.html @@ -5,6 +5,7 @@

{{.Title}}

+ {{ if .Pages }} + {{ end }}