diff --git a/src/blog/index.html b/src/blog/index.html index e600197..8e8068f 100644 --- a/src/blog/index.html +++ b/src/blog/index.html @@ -5,6 +5,8 @@ pagination: data: collections.posts size: 5 reverse: true +eleventyImport: + collections: ["posts"] ---

Blog posts

diff --git a/src/blog/tag.html b/src/blog/tag.html index 9240138..1aa538c 100644 --- a/src/blog/tag.html +++ b/src/blog/tag.html @@ -14,6 +14,9 @@ "atom": "{{ page.url }}atom.xml", "json": "{{ page.url }}feed.json" } + }, + "eleventyImport": { + "collections": ["tags", "posts"] } } --- diff --git a/src/feeds/atom.njk b/src/feeds/atom.njk index 7f3d2da..a5380f6 100644 --- a/src/feeds/atom.njk +++ b/src/feeds/atom.njk @@ -1,7 +1,10 @@ ---json { "permalink": "atom.xml", - "eleventyExcludeFromCollections": true + "eleventyExcludeFromCollections": true, + "eleventyImport": { + "collections": ["posts"] + } } --- diff --git a/src/feeds/json.njk b/src/feeds/json.njk index 548cd8e..76c76d8 100644 --- a/src/feeds/json.njk +++ b/src/feeds/json.njk @@ -1,7 +1,10 @@ ---json { "permalink": "feed.json", - "eleventyExcludeFromCollections": true + "eleventyExcludeFromCollections": true, + "eleventyImport": { + "collections": ["posts"] + } } --- { diff --git a/src/feeds/rss.njk b/src/feeds/rss.njk index 52c613d..2b65ee9 100644 --- a/src/feeds/rss.njk +++ b/src/feeds/rss.njk @@ -1,6 +1,9 @@ --- permalink: /rss.xml eleventyExcludeFromCollections: true +eleventyImport: + collections: + - posts --- diff --git a/src/feeds/tags/atom.njk b/src/feeds/tags/atom.njk index 9887e65..9f6a1c7 100644 --- a/src/feeds/tags/atom.njk +++ b/src/feeds/tags/atom.njk @@ -5,6 +5,8 @@ pagination: alias: tag eleventyComputed: permalink: "/post/tag/{{ tag }}/atom.xml" +eleventyImport: + collections: ["posts", "tags"] --- diff --git a/src/feeds/tags/json.njk b/src/feeds/tags/json.njk index aba5158..790b353 100644 --- a/src/feeds/tags/json.njk +++ b/src/feeds/tags/json.njk @@ -5,6 +5,8 @@ pagination: alias: tag eleventyComputed: permalink: "/post/tag/{{ tag }}/feed.json" +eleventyImport: + collections: ["posts", "tags"] --- { "version": "https://jsonfeed.org/version/1.1", diff --git a/src/feeds/tags/rss.njk b/src/feeds/tags/rss.njk index c46444d..848ada4 100644 --- a/src/feeds/tags/rss.njk +++ b/src/feeds/tags/rss.njk @@ -5,6 +5,8 @@ pagination: alias: tag eleventyComputed: permalink: "/post/tag/{{ tag }}/rss.xml" +eleventyImport: + collections: ["posts", "tags"] ---