From 92579b2c721705fe9933c168d89e0b4c7ffc5e05 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Sun, 20 Jul 2025 12:47:09 +0200 Subject: [PATCH] #693, Hide ToC aside menu if table of contents is empty --- layouts/_default/baseof.html | 2 +- layouts/_partials/docs/header.html | 2 +- layouts/_partials/docs/toc-show.html | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 layouts/_partials/docs/toc-show.html diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index a6c4c07..f38b7f5 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -33,7 +33,7 @@ - {{ if default true (default .Site.Params.BookToC .Params.BookToC) }} + {{ if partial "docs/toc-show" . }}