Skip to content

Commit

Permalink
Enable summary for the post in blog - adding support for configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
aldrineeinsteen committed Jul 14, 2020
1 parent 722329a commit 86b772e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@
<h2 class="post__title">
<a href="{{.RelPermalink}}">{{ .Title }}</a>
</h2>
{{if .Site.Params.blog.summary }}
{{ .Summary }}
{{if .Truncated }}
<!-- This <div> includes a read more link, but only if the summary is truncated... -->
<div class="post__title" align="right">
<a href="{{ .RelPermalink }}">Read More</a>
</div>
{{ end }}
{{ end }}
{{ partial "tags.html" .}}
</div>
</li>
Expand Down

0 comments on commit 86b772e

Please sign in to comment.