From 35ebc07f987bb4f732e9a09997e28f39b1fd705e Mon Sep 17 00:00:00 2001 From: verdant Date: Sat, 6 Jun 2026 12:15:18 +0800 Subject: Make it look better --- layouts/shortcodes/recent-posts.html | 39 +++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 18 deletions(-) (limited to 'layouts/shortcodes') diff --git a/layouts/shortcodes/recent-posts.html b/layouts/shortcodes/recent-posts.html index 45e1958..9819f36 100644 --- a/layouts/shortcodes/recent-posts.html +++ b/layouts/shortcodes/recent-posts.html @@ -3,23 +3,26 @@ {{ $recent := first 10 $pages.ByDate.Reverse }}
- {{ if $recent }} - + {{ else }} +

暂无随笔 / No posts found.

+ {{ end }}
-- cgit v1.2.3