Only show 'Read more' if summary was truncated

pull/1/head
Kevin C. Coram 2019-11-19 19:19:30 -05:00
parent 0fd2bcc49a
commit bdbe3f9d78
Signed by: kevin
GPG Key ID: 0342351B3D61AD35
1 changed files with 3 additions and 1 deletions

View File

@ -4,9 +4,11 @@
<div class="post-meta">{{ .Date.Format "Mon, Jan 2, 2006" }} - {{ .FuzzyWordCount }} Words </div>
</header>
{{ .Summary }}
{{ if .Truncated }}
<footer>
<a href='{{ .Permalink }}'>
<span style="white-space: nowrap;">Read more →</span>
</a>
</footer>
{{ end }}
</article>