-
|
I want to create collections for every pagination page based on the pagination template // collections.json
{
"eleventyComputed": {
"tags": "{{ page.fileSlug }}"
}
}// articles.liquid
---
pagination:
alias: article
data: shop.articles
size: 1
addAllPagesToCollections: true
eleventyComputed:
title: "{{ article.title }}"
permalink: "/{{ page.fileSlug }}/{{ article.id }}/"
---The |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
Hhmm, good questions!
Let me see if I can create a quick sample which might get you started… |
Beta Was this translation helpful? Give feedback.
Hhmm, good questions!
Yes, you should be able to set
tagsdynamically ineleventyComputedwith a few notable catches:pagevariables, you might need to use a collections.11tydata.js data file and use the function version ofeleventyComputedvariables.Let me see if I can create a quick sample which might get you started…