Skip to content

Commit

Permalink
style: minor changes of post card
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Oct 9, 2023
1 parent 3052c47 commit ec768a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions layouts/partials/hb/modules/blog/post/card.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{{- if default true site.Params.hb.blog.post_thumbnail }}
{{ partial "hb/modules/blog/post/card-img" $page }}
{{- end }}
<div class="card-body px-0 pt-2 d-flex flex-column">
<div class="card-body px-0 py-2 d-flex flex-column">
<div class="hb-blog-post-title card-title h5 py-1">
<a
class="hb-blog-post-title-link d-block"
Expand All @@ -41,9 +41,9 @@
{{- $summary -}}
</div>
{{- if $truncated }}
<div>
<div class="mt-2">
<a
class="btn btn-sm btn-outline-secondary mt-2" href="{{ .RelPermalink }}">
class="btn btn-sm btn-outline-secondary" href="{{ .RelPermalink }}">
{{- "read_more" | i18n -}}
</a>
</div>
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/hb/modules/blog/posts.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{- $cols := default "row-cols-1 row-cols-lg-2 row-cols-xl-3" .Cols }}
<div class="hb-blog-posts hb-module row {{ $cols }}">
<div class="hb-blog-posts hb-module row {{ $cols }} g-3">
{{ range .Pages }}
<div class="col mb-3">
<div class="col">
{{- $ctx := dict "Page" . }}
{{ partial "hb/modules/blog/post/card" $ctx }}
</div>
Expand Down

0 comments on commit ec768a7

Please sign in to comment.