diff --git a/content/de/vorjahre.md b/content/de/vorjahre.md index b4b8e64..71fdf52 100644 --- a/content/de/vorjahre.md +++ b/content/de/vorjahre.md @@ -2,6 +2,7 @@ omit_header_text: true title: "Vorjahre" featured_image: "img/if25_banner.png" +recent_posts_number: 10 --- ## 2024: Technikf(|l)u(g|ch) diff --git a/layouts/shortcodes/posts-2024.html b/layouts/shortcodes/posts-2024.html index 7535176..48279b5 100644 --- a/layouts/shortcodes/posts-2024.html +++ b/layouts/shortcodes/posts-2024.html @@ -1,16 +1,35 @@ -{{/* Get all posts from the posts section */}} -{{ $postsSection := site.GetPage "section" "posts" }} -{{ $currentYearPosts := where $postsSection.Pages "Date.Year" 2024 }} +{{/* Define section to pull recent posts from */}} +{{ $mainSections := site.Params.mainSections | default (slice "post") }} +{{ $show_recent_posts := site.Params.ananke.show_recent_posts }} -{{/* Display the filtered posts */}} - \ No newline at end of file + \ No newline at end of file