Only show 'Read more' if summary was truncated

master
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> <div class="post-meta">{{ .Date.Format "Mon, Jan 2, 2006" }} - {{ .FuzzyWordCount }} Words </div>
</header> </header>
{{ .Summary }} {{ .Summary }}
{{ if .Truncated }}
<footer> <footer>
<a href='{{ .Permalink }}'> <a href='{{ .Permalink }}'>
<span style="white-space: nowrap;">Read more →</span> <span style="white-space: nowrap;">Read more →</span>
</a> </a>
</footer> </footer>
</article> {{ end }}
</article>