diff --git a/layouts/shortcodes/latest-page-summary.html b/layouts/shortcodes/latest-page-summary.html index c954f10..f1be68d 100644 --- a/layouts/shortcodes/latest-page-summary.html +++ b/layouts/shortcodes/latest-page-summary.html @@ -1,4 +1,5 @@ {{- $section := site.GetPage (.Get "section") -}} -{{ range $section.Pages.ByDate.Reverse.Limit 1 }} +{{- $limit := .Get "limit" | default 1 -}} +{{ range $section.Pages.ByDate.Reverse.Limit $limit }} {{ .Render "page_summary" }} {{ end }}