only prompt for more if there are any
This commit is contained in:
parent
6795d4b758
commit
35bc080f36
1 changed files with 3 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue