From 007d242e874c5e3d1cc5c809504b024f58f614fc Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Tue, 7 Dec 2021 14:53:48 +0800 Subject: [PATCH] Fix ToC incorrectly display the contents of the panel Bug introduced in the commit `b518c9d` --- _includes/toc.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/_includes/toc.html b/_includes/toc.html index e9da07e..0ddebdb 100644 --- a/_includes/toc.html +++ b/_includes/toc.html @@ -1,6 +1,14 @@ +{% assign enable_toc = false %} {% if site.toc and page.toc %} + {% if page.content contains ' +

{{- site.data.locales[lang].panel.toc -}}