From f0b79cf45cf7378bff464fc07ec1de6d317dda68 Mon Sep 17 00:00:00 2001 From: yingyu5658 Date: Sat, 27 Dec 2025 23:42:31 +0800 Subject: chore: Tweak some CSS Style --- layouts/shortcodes/recent-posts.html | 77 ++++++++++++++++++++++++------------ 1 file changed, 51 insertions(+), 26 deletions(-) (limited to 'layouts/shortcodes') diff --git a/layouts/shortcodes/recent-posts.html b/layouts/shortcodes/recent-posts.html index 14ce25e..7b3d855 100644 --- a/layouts/shortcodes/recent-posts.html +++ b/layouts/shortcodes/recent-posts.html @@ -1,10 +1,15 @@ -{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} {{ -$recent := first 8 $pages.ByDate.Reverse }} +{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} +{{ $recent := first 8 $pages.ByDate.Reverse }} + +
- {{ if $recent }} {{ range $index, $page := $recent }} - -
- - -

- {{ .Title }} -

-
- {{ end }} {{ else }} -

暂无文章

+ {{ if $recent }} + {{ range $index, $page := $recent }} +
+

+ {{ .Title }} +

+ + +
+ {{ end }} + {{ else }} +
暂无文章
{{ end }}
-- cgit v1.2.3