fix: enable archive routing and dynamic volume numbering
All checks were successful
Deploy to Cloudflare Pages / publish (push) Successful in 43s
All checks were successful
Deploy to Cloudflare Pages / publish (push) Successful in 43s
This commit is contained in:
parent
3ff0f527f5
commit
f74772420b
2 changed files with 8 additions and 0 deletions
4
content/editions/editions.json
Normal file
4
content/editions/editions.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"layout": "edition",
|
||||
"volume": 1
|
||||
}
|
||||
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue