diff --git a/content/editions/editions.json b/content/editions/editions.json new file mode 100644 index 0000000..b114c6e --- /dev/null +++ b/content/editions/editions.json @@ -0,0 +1,4 @@ +{ + "layout": "edition", + "volume": 1 +} diff --git a/eleventy.config.js b/eleventy.config.js index dbbf1f0..02892c8 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -42,6 +42,10 @@ module.exports = function(eleventyConfig) { return roman; }); + eleventyConfig.addCollection("editions", function(collectionApi) { + return collectionApi.getFilteredByGlob("content/editions/*/index.md"); + }); + // 5. Directory configuration (integrated into the same function) return { dir: {