From 5aa1b73f34b4e70ca4e6b3accd4bb3aa62b14b74 Mon Sep 17 00:00:00 2001 From: KitsuneSolar Date: Sat, 4 Nov 2023 00:46:46 +0000 Subject: [PATCH] 2023-11-04 00:46:46 --- layouts/_default/_markup/render-heading.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/layouts/_default/_markup/render-heading.html b/layouts/_default/_markup/render-heading.html index ed39025..55aea92 100644 --- a/layouts/_default/_markup/render-heading.html +++ b/layouts/_default/_markup/render-heading.html @@ -2,7 +2,11 @@ {{- $anchor := ((.Anchor) | safeURL) -}} {{- $text := ((.Text) | safeHTML) -}} - - {{ ($text) }} - +{{- if (in (site.Params.toc.sections) (.Page.Section)) -}} + + {{ ($text) }} + +{{- else -}} + {{ ($text) }} +{{- end -}} {{- /* This comment removes trailing newlines. */ -}}