From a5dd989c814bb1cbbf1bec8ca33713d30bb10a48 Mon Sep 17 00:00:00 2001 From: Daniel Wagner-Hall Date: Tue, 2 Jan 2024 07:36:28 +0000 Subject: [PATCH] Don't show toc outline if no pages to show (#150) 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 }}