From 86e895ad806bf8bb1c9bd7cba64d317d68c35f7f Mon Sep 17 00:00:00 2001 From: Livia Date: Tue, 8 Apr 2025 16:02:52 +0200 Subject: [PATCH] hacky posts shortcode (needs love!) --- layouts/shortcodes/posts-2025.html | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 layouts/shortcodes/posts-2025.html diff --git a/layouts/shortcodes/posts-2025.html b/layouts/shortcodes/posts-2025.html new file mode 100644 index 0000000..d38cde8 --- /dev/null +++ b/layouts/shortcodes/posts-2025.html @@ -0,0 +1,16 @@ +{{/* Get all posts from the posts section */}} +{{ $postsSection := site.GetPage "section" "posts" }} +{{ $currentYearPosts := where $postsSection.Pages "Date.Year" 2025 }} + +{{/* Display the filtered posts */}} + \ No newline at end of file