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 --- layouts/shortcodes/recent-posts.html | 37 +++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) (limited to 'layouts/shortcodes') 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