diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-06-15 18:37:14 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-06-15 18:37:14 +0800 |
commit | 6d96abc1a4be308c7679797abdff8d9f02067ccd (patch) | |
tree | 93d3773c68c2f36cda8a950cb8cd92049e4f46ff /www/layouts | |
parent | fffff01e0e232a3cac8729d47167d8f07f561935 (diff) | |
download | crupest-6d96abc1a4be308c7679797abdff8d9f02067ccd.tar.gz crupest-6d96abc1a4be308c7679797abdff8d9f02067ccd.tar.bz2 crupest-6d96abc1a4be308c7679797abdff8d9f02067ccd.zip |
www: update article preview sep.
Diffstat (limited to 'www/layouts')
-rw-r--r-- | www/layouts/_partials/preview/posts.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/www/layouts/_partials/preview/posts.html b/www/layouts/_partials/preview/posts.html index f2cb640..291c4b2 100644 --- a/www/layouts/_partials/preview/posts.html +++ b/www/layouts/_partials/preview/posts.html @@ -1,5 +1,11 @@ {{ $h := .h }} +{{ $is_first := true}} {{ range .pages }} + {{ if $is_first }} + {{ $is_first = false }} + {{ else }} + <hr class="article-preview-hr"> + {{ end }} {{ partial "preview/post.html" (dict "h" $h "page" .) |