Skip to content

Commit

Permalink
fix: missing read-more on home-posts page (#198)
Browse files Browse the repository at this point in the history
Read-more isn't shown at home-posts when summary is specified in the post front-matter.

Co-authored-by: Yusman Kamaleri <ybkamaleri@gmail.com>
Co-authored-by: Wladimir Palant <fqcgithub@palant.de>
  • Loading branch information
3 people committed Jun 14, 2020
1 parent 87e8586 commit 831d8fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/pages/home-posts.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h2 class="post-title">
<summary class="summary">
{{ partial "utils/summary.html" . }}
</summary>
{{ if .Truncated }}
{{ if or .Truncated .Params.summary }}
<div class="read-more-container">
<a href="{{ .RelPermalink }}" class="read-more-link">{{ i18n "readMore" }} »</a>
</div>
Expand Down

0 comments on commit 831d8fb

Please sign in to comment.