From 8c7eb0b47ec6e5df2c2422d9e2ab1c39432f6569 Mon Sep 17 00:00:00 2001 From: Jarrod Millman Date: Thu, 15 Feb 2024 16:25:35 -0800 Subject: [PATCH] Add blog frontpage shortcode --- layouts/shortcodes/blog.html | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 layouts/shortcodes/blog.html diff --git a/layouts/shortcodes/blog.html b/layouts/shortcodes/blog.html new file mode 100644 index 00000000..91534c68 --- /dev/null +++ b/layouts/shortcodes/blog.html @@ -0,0 +1,11 @@ +
+
+ {{ $latest := (first 8 (where $.Site.RegularPages.ByPublishDate.Reverse "Section" "posts")) }} + + {{ partial "posts/list-with-summary.html" $latest }} + + +
+