From ef9ea9ffe4f10a1b5fedbbd940ce7d5195137641 Mon Sep 17 00:00:00 2001 From: BigCoke233 Date: Sat, 31 Jan 2026 12:07:10 +0800 Subject: remove: now-read-this (related posts) it adds clutter and is not very useful Former-commit-id: ec13457ab7b6c69182d1ea798f9ed739db71aea8 --- i18n/en.yml | 1 - i18n/zh.yml | 1 - layouts/_partials/posts/now-read-this.html | 23 ----------------------- layouts/_partials/template/post-page.html | 1 - 4 files changed, 26 deletions(-) delete mode 100644 layouts/_partials/posts/now-read-this.html diff --git a/i18n/en.yml b/i18n/en.yml index aa04e276..f530ca72 100644 --- a/i18n/en.yml +++ b/i18n/en.yml @@ -19,7 +19,6 @@ postNav: moreLinks: posts: 'All Posts' cards: 'All Cards' -nowReadThis: 'Now Read This' backToHome: 'Back To Home' termPage: cards: 'Cards about this topic' diff --git a/i18n/zh.yml b/i18n/zh.yml index 416f2fb1..713b299d 100644 --- a/i18n/zh.yml +++ b/i18n/zh.yml @@ -19,7 +19,6 @@ cards: 最近在学 moreLinks: posts: '所有文章' cards: '所有卡片' -nowReadThis: '接下来阅读' backToHome: '返回首页' termPage: cards: '相关卡片' diff --git a/layouts/_partials/posts/now-read-this.html b/layouts/_partials/posts/now-read-this.html deleted file mode 100644 index f7b77fcb..00000000 --- a/layouts/_partials/posts/now-read-this.html +++ /dev/null @@ -1,23 +0,0 @@ -{{ with site.RegularPages.Related . | first 1 }} -{{ range . }} - -

- {{ T "nowReadThis" }} -

-
- - {{ .LinkTitle }} - {{ with .Params.subtitle }} - :{{ . }} - {{ end }} - - ⏱️ {{ .ReadingTime }}min -
-
-

{{ .Summary | plainify }}

-
-
-{{ end }} -{{ end }} diff --git a/layouts/_partials/template/post-page.html b/layouts/_partials/template/post-page.html index 872c6588..b05b6b41 100644 --- a/layouts/_partials/template/post-page.html +++ b/layouts/_partials/template/post-page.html @@ -44,6 +44,5 @@ {{ partial "posts/action-menu.html" . }} - {{ partial "posts/now-read-this.html" . }} {{ partial "components/back-to-top.html" . }} -- cgit v1.2.3