From ec768a7b9d9ad1f444683e48ca048175d9c6d57a Mon Sep 17 00:00:00 2001 From: razonyang Date: Mon, 9 Oct 2023 23:25:12 +0800 Subject: [PATCH] style: minor changes of post card --- layouts/partials/hb/modules/blog/post/card.html | 6 +++--- layouts/partials/hb/modules/blog/posts.html | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/layouts/partials/hb/modules/blog/post/card.html b/layouts/partials/hb/modules/blog/post/card.html index d2b7d504..9f4e54fa 100644 --- a/layouts/partials/hb/modules/blog/post/card.html +++ b/layouts/partials/hb/modules/blog/post/card.html @@ -16,7 +16,7 @@ {{- if default true site.Params.hb.blog.post_thumbnail }} {{ partial "hb/modules/blog/post/card-img" $page }} {{- end }} -
+
{{- if $truncated }} -
+ diff --git a/layouts/partials/hb/modules/blog/posts.html b/layouts/partials/hb/modules/blog/posts.html index 203be120..2a7f245f 100644 --- a/layouts/partials/hb/modules/blog/posts.html +++ b/layouts/partials/hb/modules/blog/posts.html @@ -1,7 +1,7 @@ {{- $cols := default "row-cols-1 row-cols-lg-2 row-cols-xl-3" .Cols }} -
+
{{ range .Pages }} -
+
{{- $ctx := dict "Page" . }} {{ partial "hb/modules/blog/post/card" $ctx }}