Add atom/rss/json feeds
This commit is contained in:
1 parent
c8c5981bd3
commit
b10dfae5dd
19 files changed
+466
-181
No files matched your search
@@ -1 +1,5 @@
|
||||
module.exports = function() {}
|
||||
const tags = require('./tags');
|
||||
|
||||
module.exports = function(eleventyConfig) {
|
||||
eleventyConfig.addPlugin(tags);
|
||||
}
|
||||
Whitespace-only changes.
@@ -0,0 +1,10 @@
|
||||
module.exports = (eleventyConfig) => {
|
||||
eleventyConfig.addCollection('tags', (collectionApi) => {
|
||||
const tags = new Set();
|
||||
collectionApi.getAll().forEach((item) => {
|
||||
if (!item.data.tags) return;
|
||||
item.data.tags.forEach((tag) => tags.add(tag));
|
||||
});
|
||||
return [...tags];
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user