Add a latest-page-summary shortcode

Produces a summary of the latest page in a given section
This commit is contained in:
Eryn Wells 2024-07-23 09:13:32 -07:00
parent bccadced1b
commit aee96476a7

View file

@ -0,0 +1,4 @@
{{- $section := site.GetPage (.Get "section") -}}
{{ range $section.Pages.ByDate.Reverse.Limit 1 }}
{{ .Render "page_summary" }}
{{ end }}