-
-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to paginate collection data? #76
Comments
Yes, I would expect that to work as well and can confirm that it is not. Lemme have a look. |
Running through fixing a couple of pagination things and ran into a design question that I’d like input on if you don’t mind @paulrobertlloyd: If you add a tag to a paginated template, which would you prefer/expect:
Looking for opinions! |
Short answer: 2. Longer answer. Currently, I’m using server rewrites so that paginated URLs use query strings, rather than paths, i.e. Also, while I’m here (!)
Does that make sense? |
To answer your second question @paulrobertlloyd, the
|
|
@nhoizey I should note that not all front matter keys support template syntax. |
@zachleat ok, thanks for the clarification. |
Alright, the code should be in good shape for this now and will be released with 0.2.16. Do take note that I don’t think Liquid
|
@zachleat Just tested these latest changes, and it works! Nice. Also, so does |
Hmm well I am suspicious because 0.2.16 is not out yet! 😇 |
Pointed the 11ty dependency to its GitHub repo. |
@paulrobertlloyd oh! Well, nevermind me then 😎 |
0.2.16 will now be 0.3.0, which shouldn’t have a functional impact to you but just fyi. |
hey I am still struggling to make paged paginations. Is there an example repo or an output of what this code does? I tried it but it doesn't do what I thought it would. Thanks! |
I'm trying to use this today and it isn't working. I've got a dynamic collection being setup in .eleventy.js, it's called tagList. I then try to use it here:
And I get: Could not resolve pagination key in template data: tagList |
I apologize - I see it is |
And it already is. Sigh. Stupid me not CTRL+F on the page. Sorry for the noise! |
I’ve set up some collections, and have indices which I’d like to paginate over the resulting data. I was expecting to be able to use the following template:
I might have misunderstood this feature, but is it possible to use collection data as a basis for pagination?
The text was updated successfully, but these errors were encountered: