From fce036fea8371d9429aec336533974ef617574c6 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 12 Nov 2017 14:42:21 +0000 Subject: [PATCH] Hide ToC if there arent any --- layouts/partials/content.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/layouts/partials/content.html b/layouts/partials/content.html index d4f93da..276d547 100644 --- a/layouts/partials/content.html +++ b/layouts/partials/content.html @@ -16,8 +16,10 @@


-
- {{ .TableOfContents }} -
+ {{ if .TableOfContents }} +
+ {{ .TableOfContents }} +
+ {{ end }} {{ .Content }}