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:
commit
bacb2ca6d1
@ -48,8 +48,12 @@
|
||||
</p>
|
||||
|
||||
<div class="post-entry">
|
||||
{{ if .Truncated }}
|
||||
{{ .Summary }}
|
||||
<a href="{{ .Permalink }}" class="post-read-more">[Read More]</a>
|
||||
{{ else }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
Loading…
Reference in New Issue
Block a user