Skip to content

Commit

Permalink
fix(article-cards): change the description margin-bottom as mb-2 when…
Browse files Browse the repository at this point in the history
… linkText is set (#68)

style(article-cards): strip HTML tags from description
  • Loading branch information
razonyang authored Sep 3, 2023
1 parent 01beb55 commit 5acdcb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/bootstrap/article-cards.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
<div class="card-title h5">
{{- .Title -}}
</div>
<div class="card-text mt-1 mb-0 text-body-secondary">
{{- truncate $summaryLen "..." (default .Summary .Description) -}}
<div class="card-text mt-1 text-body-secondary{{ cond (not $linkText) ` mb-0` ` mb-2` }}">
{{- truncate $summaryLen "..." (default .Summary .Description) | plainify | htmlUnescape -}}
</div>
{{- if $linkText }}
<p class="mt-auto mb-0">
Expand Down

0 comments on commit 5acdcb4

Please sign in to comment.