1
Fork 0

only prompt for more if there are any

This commit is contained in:
Jake Howard 2017-05-06 21:36:20 +01:00
parent 6795d4b758
commit 35bc080f36

View file

@ -10,7 +10,9 @@
{{ range first 4 .Pages.ByDate }}
<li><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></li>
{{ end }}
{{ if ge (len .Pages) 4 }}
<li><a href="{{ .Permalink }}"><i>See more</i></a></li>
{{ end }}
</ul>
{{ end }}
</li>