aboutsummaryrefslogtreecommitdiff
path: root/www/layouts
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-06-15 18:37:14 +0800
committerYuqian Yang <crupest@crupest.life>2025-06-15 18:37:14 +0800
commit6d96abc1a4be308c7679797abdff8d9f02067ccd (patch)
tree93d3773c68c2f36cda8a950cb8cd92049e4f46ff /www/layouts
parentfffff01e0e232a3cac8729d47167d8f07f561935 (diff)
downloadcrupest-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.html6
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" .)