From 35bc080f36b1062b878b10d0ceaf61cc28591806 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 6 May 2017 21:36:20 +0100 Subject: [PATCH] only prompt for more if there are any --- layouts/partials/navbar.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html index cfff70b..f040358 100644 --- a/layouts/partials/navbar.html +++ b/layouts/partials/navbar.html @@ -10,7 +10,9 @@ {{ range first 4 .Pages.ByDate }}
  • {{ .LinkTitle }}
  • {{ end }} -
  • See more
  • + {{ if ge (len .Pages) 4 }} +
  • See more
  • + {{ end }} {{ end }}