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>
|
<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>
|
||||||
|
{{ end }}
|
||||||
</article>
|
</article>
|
Loading…
Reference in New Issue