Allow limit to be 1

This commit is contained in:
Will Faught
2023-09-20 22:53:02 -07:00
parent c08c6eb637
commit 9f81fbcd50

View File

@@ -4,7 +4,7 @@
{{ $pages := (cond $page.IsHome site $page).RegularPages }}
{{ $title := partial "paige/title.html" $page }}
{{ if ge $limit 1 }}
{{ if ge $limit 0 }}
{{ $pages = $pages | first $limit }}
{{ end }}