From 31cd7a3067a9996b7140aeaefb6c97e08db2f78f Mon Sep 17 00:00:00 2001
From: verdant
Date: Sat, 11 Apr 2026 18:27:20 +0800
Subject: update
---
layouts/_default/baseof.html | 64 +-
layouts/_default/single.html | 25 +-
layouts/_markup/render-blockquote.html | 107 ---
layouts/archives/single.html | 7 +-
layouts/layouts/404.html | 29 -
layouts/layouts/_default/_markup/render-image.html | 4 -
layouts/layouts/_default/baseof.html | 33 -
layouts/layouts/_default/list.html | 70 --
layouts/layouts/_default/rss.xml | 82 --
layouts/layouts/_default/single.html | 319 --------
layouts/layouts/_default/term.html | 36 -
layouts/layouts/archives/single.html | 96 ---
layouts/layouts/index.html | 3 -
layouts/layouts/partials/custom_body.html | 3 -
layouts/layouts/partials/custom_head.html | 21 -
layouts/layouts/partials/favicon.html | 2 -
layouts/layouts/partials/footer.html | 8 -
layouts/layouts/partials/header.html | 4 -
layouts/layouts/partials/nav.html | 6 -
layouts/layouts/partials/post_meta.html | 39 -
layouts/layouts/partials/seo_tags.html | 15 -
layouts/layouts/partials/style.html | 846 ---------------------
layouts/layouts/partials/toc.html | 91 ---
layouts/layouts/robots.txt | 2 -
layouts/layouts/shortcodes/archives-list.html | 30 -
layouts/layouts/shortcodes/book.html | 9 -
layouts/layouts/shortcodes/music.html | 37 -
layouts/layouts/shortcodes/recent-posts.html | 24 -
layouts/layouts/shortcodes/word-count.html | 41 -
layouts/partials/custom_head.html | 18 +-
layouts/partials/footer.html | 12 +-
layouts/partials/post_meta.html | 37 +-
layouts/partials/style.html | 811 --------------------
layouts/partials/toc.html | 110 +--
layouts/shortcodes/archives-list.html | 57 +-
layouts/shortcodes/word-count.html | 70 +-
36 files changed, 156 insertions(+), 3012 deletions(-)
delete mode 100644 layouts/_markup/render-blockquote.html
delete mode 100644 layouts/layouts/404.html
delete mode 100644 layouts/layouts/_default/_markup/render-image.html
delete mode 100644 layouts/layouts/_default/baseof.html
delete mode 100644 layouts/layouts/_default/list.html
delete mode 100644 layouts/layouts/_default/rss.xml
delete mode 100644 layouts/layouts/_default/single.html
delete mode 100644 layouts/layouts/_default/term.html
delete mode 100644 layouts/layouts/archives/single.html
delete mode 100644 layouts/layouts/index.html
delete mode 100644 layouts/layouts/partials/custom_body.html
delete mode 100644 layouts/layouts/partials/custom_head.html
delete mode 100644 layouts/layouts/partials/favicon.html
delete mode 100644 layouts/layouts/partials/footer.html
delete mode 100644 layouts/layouts/partials/header.html
delete mode 100644 layouts/layouts/partials/nav.html
delete mode 100644 layouts/layouts/partials/post_meta.html
delete mode 100644 layouts/layouts/partials/seo_tags.html
delete mode 100644 layouts/layouts/partials/style.html
delete mode 100644 layouts/layouts/partials/toc.html
delete mode 100644 layouts/layouts/robots.txt
delete mode 100644 layouts/layouts/shortcodes/archives-list.html
delete mode 100644 layouts/layouts/shortcodes/book.html
delete mode 100644 layouts/layouts/shortcodes/music.html
delete mode 100644 layouts/layouts/shortcodes/recent-posts.html
delete mode 100644 layouts/layouts/shortcodes/word-count.html
delete mode 100644 layouts/partials/style.html
(limited to 'layouts')
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index ebc6a41..b78e7ef 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -1,44 +1,44 @@
-
有想对我说的?发一封邮件吧。
{{ end }} diff --git a/layouts/_markup/render-blockquote.html b/layouts/_markup/render-blockquote.html deleted file mode 100644 index c11de7e..0000000 --- a/layouts/_markup/render-blockquote.html +++ /dev/null @@ -1,107 +0,0 @@ - - - - - -{{ $emojis := dict - "caution" "🚨" - "important" "☝️" - "note" "ℹ️" - "tip" "💡" - "warning" "⚠️" - "announcement" "📣" -}} - -{{ if eq .Type "alert" }} ---{{ else }} -- {{ with .AlertTitle }} - {{.}} - {{ else }} - {{ index $emojis .AlertType }} - {{ end }} --- {{ .Text }} --
- {{ .Text }} --{{ end }} diff --git a/layouts/archives/single.html b/layouts/archives/single.html index be44c9f..fea6ac2 100644 --- a/layouts/archives/single.html +++ b/layouts/archives/single.html @@ -1,7 +1,12 @@ {{ define "main" }}
{{ .Site.Title }}
+ +该分类下还没有文章。
- {{ end }} -共有 {{ len $postPages }} 篇文章
- {{ end }} - -共有 {{ len $pagesToShow }} 篇文章
- -{{ .Get "artist" }}
-
- Apple Music
-
- {{ end }}
-
- {{ with .Get "netease" }}
-
-
- 网易云
-
- {{ end }}
-
- {{ with .Get "spotify" }}
-
-
- Spotify
-
- {{ end }}
- {{ .Site.Title }}
+ + + +共有 {{ len $pagesToShow }} 篇文章
- -共有 {{ len $pagesToShow }} 篇文章
+ ++ 共书写了 {{ lang.FormatNumber 0 $count }} 字,{{ $readTime + := div $count 400 }}预计需要阅读 + {{ if lt $readTime 60 }}{{ $readTime }} 分钟{{ else }}{{ div (float + $readTime) 60 | printf "%.1f" }} 小时{{ end }} + ,{{ $classics := slice (dict "name" "红楼梦" "words" 731017) (dict "name" + "金阁寺" "words" 125000) (dict "name" "了不起的盖茨比" "words" 49800) (dict + "name" "呐喊" "words" 152000) (dict "name" "老人与海" "words" 26800) (dict + "name" "1984" "words" 123000) (dict "name" "围城" "words" 257000) (dict + "name" "飘" "words" 802000) }} {{ $closestBook := index $classics 0 }} {{ + $minDiff := 99999999 }} {{ range $classics }} {{ $diff := sub $count .words + }}{{ if lt $diff 0 }}{{ $diff = mul $diff -1 }}{{ end }} {{ if lt $diff + $minDiff }} {{ $minDiff = $diff }} {{ $closestBook = . }} {{ end }} {{ end + }} {{ $ratio := div (float $count) $closestBook.words }}相当于写了 + {{ $ratio | printf "%.2f" }} 本《{{ $closestBook.name + }}》。 +
+
-
- - -评论 与 Webmentions
-- 若想回复本文,请在你的博客或社媒发布含有本文链接的帖子,然后在下方表单提交链接。 -
-- 也可以发送邮件评论。 -
- 关于 Webmention 的更多信息 - 以及 - 为什么要这么做? -评论区已关闭。
- {{ . | markdownify }} -