diff --git a/layouts/shortcodes/latest-page-summary.html b/layouts/shortcodes/latest-page-summary.html new file mode 100644 index 0000000..c954f10 --- /dev/null +++ b/layouts/shortcodes/latest-page-summary.html @@ -0,0 +1,4 @@ +{{- $section := site.GetPage (.Get "section") -}} +{{ range $section.Pages.ByDate.Reverse.Limit 1 }} + {{ .Render "page_summary" }} +{{ end }}