Parameterize the number of posts to return in the latest-page-summary shortcode
This commit is contained in:
parent
115b9dd9cd
commit
8aaea57a2e
1 changed files with 2 additions and 1 deletions
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue