-
-
Notifications
You must be signed in to change notification settings - Fork 503
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
Example showing pagination and tags working #134
Comments
Hey Neil, Good request! For the interim:
See the following example:
|
Hey @chrisdmacrae—thanks for the example! What templating syntax is that HTML file using? |
I modified your example to show how it works in Nunjucks and Liquid:
|
Here’s an interesting use case related to a question from @philhawksworth: tag pages. This might not work until 0.3.6, blocked by #135
|
Alright @philhawksworth, I did give the tag pages a shot on the However, you can implement tag pages pretty easily if you create a whitelist array of the tags you want pages for. I’ve implemented an example in a PR so you can see all the changes in the same place, have a look: https://github.com/11ty/eleventy-base-blog/pull/9/files |
Now that 0.3.6 is out (🎉) could you explain a little more about how the above suggestion would work, @zachleat? (Assuming that is indeed something that is now possible). The requirement I keep coming back around to is for creating a set of tag pages listing all of the items for each given tag. |
@philhawksworth I started to write a Quick Tip describing the whitelisted tag pages approach implemented at https://github.com/11ty/eleventy-base-blog/pull/9/files but I decided to implement #139 instead to make this automatic instead of having to manually manage the whitelist. I think this will wait until 0.3.7, sorry! Feel free to use the whitelisted approach for now but the docs will describe this new method going forward. |
Added a couple of examples for v0.4.0: |
Niiiice. The site in question is here (https://templates.netlify.com/), should you want to add that to your list of places using eleventy in the wild, @zachleat . Wonderful stuff. Thanks! |
Thanks @philhawksworth!! |
Hey, Eleventy looks great!
Can we have another example blog showing pagination and tags working? A designer like me is struggling to get this working at the moment, so any help would be appreciated!
Thanks!
The text was updated successfully, but these errors were encountered: