aboutsummaryrefslogtreecommitdiff
path: root/www/layouts/_partials/preview/posts.html
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
commit6e2cfec16aa1481ac73317f6b7b29d7733a1a42d (patch)
tree968de73b449a97c3b3fe3e8e47ce152c06510a38 /www/layouts/_partials/preview/posts.html
parentf2549905c848bcad28cb1f32373aed9cdcb43921 (diff)
downloadcrupest-6e2cfec16aa1481ac73317f6b7b29d7733a1a42d.tar.gz
crupest-6e2cfec16aa1481ac73317f6b7b29d7733a1a42d.tar.bz2
crupest-6e2cfec16aa1481ac73317f6b7b29d7733a1a42d.zip
www: update article preview sep.
Diffstat (limited to 'www/layouts/_partials/preview/posts.html')
-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" .)