only display '[Read More]' link if post is truncated

This commit is contained in:
Tom Hoover 2017-02-18 12:57:50 -06:00
parent 938766f54f
commit 999b033f75

View File

@ -48,8 +48,12 @@
</p> </p>
<div class="post-entry"> <div class="post-entry">
{{ if .Truncated }}
{{ .Summary }} {{ .Summary }}
<a href="{{ .Permalink }}" class="post-read-more">[Read&nbsp;More]</a> <a href="{{ .Permalink }}" class="post-read-more">[Read&nbsp;More]</a>
{{ else }}
{{ .Content }}
{{ end }}
</div> </div>
</article> </article>