Use eleventyImport to control rebuilds of tag, blog, and feed pages
Build and copy to prod / build-and-copy (push) Successful in 1m51s

This commit is contained in:
Lewis Dale committed 2024-04-11 07:03:25 +01:00
1 parent acdab8b321
commit 1584068b59
8 files changed
+22 -2

No files matched your search

+4 -1
View File
@@ -1,7 +1,10 @@
---json
{
"permalink": "atom.xml",
"eleventyExcludeFromCollections": true
"eleventyExcludeFromCollections": true,
"eleventyImport": {
"collections": ["posts"]
}
}
---
<?xml version="1.0" encoding="utf-8"?>
+4 -1
View File
@@ -1,7 +1,10 @@
---json
{
"permalink": "feed.json",
"eleventyExcludeFromCollections": true
"eleventyExcludeFromCollections": true,
"eleventyImport": {
"collections": ["posts"]
}
}
---
{
+3
View File
@@ -1,6 +1,9 @@
---
permalink: /rss.xml
eleventyExcludeFromCollections: true
eleventyImport:
collections:
- posts
---
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xml:base="{{ metadata.site.url }}" xmlns:atom="http://www.w3.org/2005/Atom">
+2
View File
@@ -5,6 +5,8 @@ pagination:
alias: tag
eleventyComputed:
permalink: "/post/tag/{{ tag }}/atom.xml"
eleventyImport:
collections: ["posts", "tags"]
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:base="{{ metadata.site.url }}">
+2
View File
@@ -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",
+2
View File
@@ -5,6 +5,8 @@ pagination:
alias: tag
eleventyComputed:
permalink: "/post/tag/{{ tag }}/rss.xml"
eleventyImport:
collections: ["posts", "tags"]
---
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xml:base="{{ metadata.site.url }}" xmlns:atom="http://www.w3.org/2005/Atom">