aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/partials
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/toc.html19
1 files changed, 0 insertions, 19 deletions
diff --git a/layouts/partials/toc.html b/layouts/partials/toc.html
deleted file mode 100644
index 101c5e9..0000000
--- a/layouts/partials/toc.html
+++ /dev/null
@@ -1,19 +0,0 @@
-{{ $hasHeadings := false }}
-{{ if .RawContent }}
- {{/* 正则匹配:查找以 1 到 6 个 # 开头的行 */}}
- {{ $headings := findRE "(?m)^#{1,6} " .RawContent }}
- {{ if gt (len $headings) 0 }}
- {{ $hasHeadings = true }}
- {{ end }}
-{{ end }}
-
-{{ if $hasHeadings }}
-<aside id="ms_toc_container">
- <div id="ms_toc">
- <strong>Table Of Contents</strong>
- <nav class="toc-nav">
- {{ .TableOfContents }}
- </nav>
- </div>
-</aside>
-{{ end }}