From e302bd73106b30f0ece8733d6c9717e43fdf18e1 Mon Sep 17 00:00:00 2001 From: verdant Date: Wed, 19 Aug 2026 17:20:08 +0800 Subject: Delete unused files --- content/en/posts/HelloWorld.md | 10 ---------- layouts/_default/_markup/render-image.html | 4 ---- layouts/partials/toc.html | 19 ------------------- 3 files changed, 33 deletions(-) delete mode 100644 content/en/posts/HelloWorld.md delete mode 100644 layouts/_default/_markup/render-image.html delete mode 100644 layouts/partials/toc.html diff --git a/content/en/posts/HelloWorld.md b/content/en/posts/HelloWorld.md deleted file mode 100644 index 5f876cd..0000000 --- a/content/en/posts/HelloWorld.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -title: 'HelloWorld' -date: '2026-02-26T14:16:05+08:00' -slug: "hw" -categories: -tags: -draft: true -comments: true ---- -Hello World! This is my first English post. 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 @@ -
- {{ .Text }} -
{{ .Text }}
-
\ 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 }} - -{{ end }} -- cgit v1.2.3