Skip to content
Discussion options

You must be logged in to vote

I got it to work. Read in my xml file, manually created a collection and added the parts of the xml that I wanted to be on different pages as nodes into the collection. See here: https://www.11ty.dev/docs/collections/#advanced-custom-filtering-and-sorting

Then I used the pagination feature and paginated the collection using a size of 1. See: https://www.11ty.dev/docs/pagination/#paging-a-collection

I still would prefer if one could create a ton of objects like:

{
  "data": 
  {
    "url": "/x/y/z/",
    "title": "test title",
    "date": "xxxx-yy-zz"
  },
  "content": "xyz"
}

And add them through a programmatic API as if it was a file on disc. Since there would be no input path, one had …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Simon-Martens
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants