diff --git a/_includes/components/sections/recent-posts.njk b/_includes/components/sections/recent-posts.njk index 5e9f2ed..92eb084 100644 --- a/_includes/components/sections/recent-posts.njk +++ b/_includes/components/sections/recent-posts.njk @@ -7,15 +7,17 @@ {% set sectionConfig = section.config or {} %} {% set maxItems = sectionConfig.maxItems or 5 %} {% set showSummary = sectionConfig.showSummary if sectionConfig.showSummary is defined else true %} +{% set excludeTypes = sectionConfig.excludeTypes or [] %} +{% set recentPosts = collections.posts | excludePostTypes(excludeTypes) | head(maxItems) %} -{% if collections.posts and collections.posts.length %} +{% if recentPosts and recentPosts.length %}

{{ sectionConfig.title or "Recent Posts" }}

- {% for post in collections.posts | head(maxItems) %} + {% for post in recentPosts %} {# Detect post type from frontmatter properties #} {% set likedUrl = post.data.likeOf or post.data.like_of %} {% set bookmarkedUrl = post.data.bookmarkOf or post.data.bookmark_of %} diff --git a/changelog.njk b/changelog.njk index 0b0f3f0..694cd41 100644 --- a/changelog.njk +++ b/changelog.njk @@ -59,6 +59,14 @@ withSidebar: false Loading changelog...
+ {# Error/stale data banner #} +
+

+ Note: + +

+
+ {# Commit list #}