From c8f3bbc976560ae62d38032bb70051254ee483da Mon Sep 17 00:00:00 2001 From: FFRaycoder Date: Tue, 1 Sep 2020 19:26:22 +0800 Subject: =?UTF-8?q?feat:=20better=20toc=20=E6=88=91=E7=9C=9F=E7=9A=84?= =?UTF-8?q?=E4=B8=8D=E6=83=B3=E8=A2=AB=E4=BA=BA=E9=AA=82=E4=BA=86=EF=BC=8C?= =?UTF-8?q?=E7=A5=96=E5=AE=89=E4=BA=BA=E8=B7=91=E6=9D=A5GitHub=E9=AA=82?= =?UTF-8?q?=E4=BA=BA=EF=BC=9F=20#8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/partials/components/post/toc.html | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/layouts/partials/components/post/toc.html b/layouts/partials/components/post/toc.html index 191519f..f7cb474 100644 --- a/layouts/partials/components/post/toc.html +++ b/layouts/partials/components/post/toc.html @@ -1,6 +1,4 @@ {{ if .Params.toc | default .Site.Params.enableToc }} - - {{ $headers := findRE "(.|\n])+?" .Content }} @@ -16,8 +14,22 @@ {{ end }} -{{- end -}} +{{- end -}} \ No newline at end of file -- cgit v1.2.3