diff options
| author | BigCoke233 <hi@guhub.cn> | 2026-01-31 12:07:10 +0800 |
|---|---|---|
| committer | BigCoke233 <hi@guhub.cn> | 2026-01-31 12:07:10 +0800 |
| commit | ec13457ab7b6c69182d1ea798f9ed739db71aea8 (patch) | |
| tree | 5f4c3b4446046d1e769254b79d23533abe8145a2 | |
| parent | 6b591e784ae29cb9cba32c2c8ea9bade03595695 (diff) | |
remove: now-read-this (related posts)
it adds clutter and is not very useful
| -rw-r--r-- | i18n/en.yml | 1 | ||||
| -rw-r--r-- | i18n/zh.yml | 1 | ||||
| -rw-r--r-- | layouts/_partials/posts/now-read-this.html | 23 | ||||
| -rw-r--r-- | layouts/_partials/template/post-page.html | 1 |
4 files changed, 0 insertions, 26 deletions
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 . }} -<a class="-mx-4 mt-4 p-4 pb-7 relative leading-loose block rounded-xl - hover:no-underline hover:bg-neutral-200/25 dark:hover:bg-neutral-700/25 transition-colors" - href="{{ .RelPermalink }}"> - <h4 class="absolute -z-1 bottom-0 right-4 text-8 m-0 opacity-20 font-italic"> - {{ T "nowReadThis" }} - </h4> - <div class="flex justify-between"> - <span class="font-800 text-lg"> - {{ .LinkTitle }} - {{ with .Params.subtitle }} - <span class="text-secondary font-normal">:{{ . }}</span> - {{ end }} - </span> - <span class="text-secondary">⏱️ {{ .ReadingTime }}min </span> - </div> - <div class="font-light"> - <p>{{ .Summary | plainify }}</p> - </div> -</a> -{{ 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 @@ </div> {{ partial "posts/action-menu.html" . }} - {{ partial "posts/now-read-this.html" . }} {{ partial "components/back-to-top.html" . }} </article> |
