aboutsummaryrefslogtreecommitdiffstats
path: root/layouts
diff options
context:
space:
mode:
authorverdant <im@verdant.ee>2026-08-19 17:20:08 +0800
committerverdant <im@verdant.ee>2026-08-19 17:20:08 +0800
commite302bd73106b30f0ece8733d6c9717e43fdf18e1 (patch)
tree1fcddd6b05a15462a6e923584282df65dac56d97 /layouts
parent22a049da9c96cd1d0e3a2f3a99eaded46387ed4d (diff)
downloadblog-e302bd73106b30f0ece8733d6c9717e43fdf18e1.tar.gz
blog-e302bd73106b30f0ece8733d6c9717e43fdf18e1.zip
Delete unused files
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/_markup/render-image.html4
-rw-r--r--layouts/partials/toc.html19
2 files changed, 0 insertions, 23 deletions
diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html
deleted file mode 100644
index bf19bf9..0000000
--- a/layouts/_default/_markup/render-image.html
+++ /dev/null
@@ -1,4 +0,0 @@
-<figure class="image-caption">
- <img src="{{ .Destination | safeURL }}" alt="{{ .Text }}">
- <figcaption>{{ .Text }}</figcaption>
-</figure> \ No newline at end of file
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 }}