fix: behaviour of exclude-from-list categories and posts therein

This commit is contained in:
2026-02-21 08:50:01 +01:00
parent 7f20a5efa2
commit a5281a7750
3 changed files with 92 additions and 4 deletions

View File

@@ -288,7 +288,7 @@ export class BlogGenerationEngine {
}
const publishedListPosts = Array.from(publishedListPostById.values())
.sort((a, b) => b.createdAt.getTime() - a.createdAt.getTime());
const feedPosts = publishedPosts.slice(0, maxPostsPerPage);
const feedPosts = publishedListPosts.slice(0, maxPostsPerPage);
onProgress(3, `Found ${publishedPosts.length} published posts`);