fix: declare collection dependencies for incremental builds

Add eleventyImport.collections to templates that access collections
via Nunjucks loops (not pagination frontmatter). Without this,
Eleventy's --incremental mode skips these pages when content changes.

- index.njk: posts, feed (homepage recent posts widget)
- feed.njk: feed (RSS must update with new posts)
- feed-json.njk: feed (JSON feed must update with new posts)
- slashes.njk: pages (slash pages index)
- categories-index.njk: categories (categories index)
This commit is contained in:
Ricardo
2026-02-18 14:42:02 +01:00
parent ff157c838d
commit 538e94f582
5 changed files with 16 additions and 0 deletions

View File

@@ -3,6 +3,9 @@ layout: layouts/base.njk
title: Slash Pages
withSidebar: true
permalink: /slashes/
eleventyImport:
collections:
- pages
---
<div class="h-feed">
<h1 class="text-2xl sm:text-3xl font-bold text-surface-900 dark:text-surface-100 mb-2">Slash Pages</h1>