Merge pull request #12 from tomhoover/only-display-ReadMore-link-if-post-is-truncated

only display '[Read More]' link if post is truncated
This commit is contained in:
Michael Romero 2017-02-19 02:19:40 -08:00 committed by GitHub
commit bacb2ca6d1

View File

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