From 2d9e5a2e38d52a5c88916d5527fca8ae05c3fe7f Mon Sep 17 00:00:00 2001 From: Reorx Date: Tue, 12 Apr 2022 23:24:32 +0800 Subject: [PATCH] fix toc script run scope --- layouts/partials/footer.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 4e348be..ab4496c 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -138,9 +138,12 @@ {{- end }} -{{- if (and (eq .Kind "page") (.Param "ShowToc") (.Param "TocSide")) }} +{{- if (and (eq .Kind "page") (.Content) (.Param "ShowToc") (.Param "TocSide")) }}