Skip to content

Commit

Permalink
fix(article-cards): use description as summary if present
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Aug 26, 2023
1 parent f20dcb6 commit ad15f7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/bootstrap/article-cards.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
{{- .Title -}}
</div>
<div class="card-text mt-1 mb-0 text-body-secondary">
{{- truncate $summaryLen "..." .Summary -}}
{{- truncate $summaryLen "..." (default .Summary .Description) -}}
</div>
<p class="mt-auto mb-0">
<a class="text-decoration-none" href="{{ .RelPermalink }}">
Expand Down

0 comments on commit ad15f7d

Please sign in to comment.