From 66543c0b3449b5dfc48c3b6a62b0387788b69d3f Mon Sep 17 00:00:00 2001 From: yingyu5658 Date: Sun, 21 Dec 2025 15:36:23 +0800 Subject: chore: set up weekly archetype and refine homepage layout * Remove the banner in index.md * Add default cover and ending template to weekly.md archetype * Remove the banner from homepage * Refactor recent-posts.md * tweak related CSS styles --- archetypes/weekly.md | 11 +++++++---- content/_index.md | 8 +++----- content/categories.md | 2 +- layouts/partials/style.html | 4 ++-- layouts/shortcodes/recent-posts.html | 37 +++++++++++++++++++++--------------- 5 files changed, 35 insertions(+), 27 deletions(-) diff --git a/archetypes/weekly.md b/archetypes/weekly.md index c9a6bbe..16e7d04 100644 --- a/archetypes/weekly.md +++ b/archetypes/weekly.md @@ -1,16 +1,20 @@ --- date: '{{ .Date }}' title: '回声周刊 Vol.' -categories: 回声周刊 +categories: + - 回声周刊 issue: tags: - draft: true --- + +> 这里是回声周刊,分享我这周读过的文章书籍、近期发生的大事小事。每周日更新。如果你对这个周刊感兴趣,可以 [订阅周刊](/categories/%E5%9B%9E%E5%A3%B0%E5%91%A8%E5%88%8A/atom.xml) 或加入 [TG频道](https://t.me/glowisle)。 + ## 〰︎ 声波 {{< music - cover="" + cover="https://images.glowisle.me/" title="" artist="" apple="" @@ -23,8 +27,7 @@ draft: true ### > 🔗 -> -> ## ♇ 所在 +以上就是本期回声周刊的全部内容,感谢阅读,祝你有充满ECHO的一周!👋 diff --git a/content/_index.md b/content/_index.md index 0865506..79c00f9 100644 --- a/content/_index.md +++ b/content/_index.md @@ -2,6 +2,7 @@ title: "映屿" --- + + --- ---- - - -## 最近更新 {{< recent-posts >}} diff --git a/content/categories.md b/content/categories.md index f8875ad..2f6f19c 100644 --- a/content/categories.md +++ b/content/categories.md @@ -22,7 +22,7 @@ title: 分类 ### [📖 回声周刊](/categories/回声周刊) -每周优质阅读分享 | 近期发生的事 +每周阅读分享 | 近期发生的事 --- diff --git a/layouts/partials/style.html b/layouts/partials/style.html index e922440..14b2eea 100644 --- a/layouts/partials/style.html +++ b/layouts/partials/style.html @@ -31,7 +31,7 @@ } img.missing { - display: none; + display: none; } nav a, @@ -79,7 +79,7 @@ } h1.post-title { - margin-top: 5vh; + margin-top: 2vh; margin-bottom: 10px; text-align: center; } diff --git a/layouts/shortcodes/recent-posts.html b/layouts/shortcodes/recent-posts.html index c6c1a3e..0d1d955 100644 --- a/layouts/shortcodes/recent-posts.html +++ b/layouts/shortcodes/recent-posts.html @@ -1,5 +1,5 @@ {{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} {{ -$recent := first 5 $pages.ByDate.Reverse }} +$recent := first 8 $pages.ByDate.Reverse }}
- {{ if $recent }} - - {{ else }} + +
+ {{ end }} {{ else }}

暂无文章

{{ end }} -- cgit v1.2.3