Only show 'Read more' if summary was truncated
parent
0fd2bcc49a
commit
bdbe3f9d78
|
@ -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>
|
Loading…
Reference in New Issue