Skip to content
This repository has been archived by the owner on Jan 25, 2019. It is now read-only.

Ability to paginate posts with a specific tag #106

Open
dminnich opened this issue Jul 12, 2013 · 1 comment
Open

Ability to paginate posts with a specific tag #106

dminnich opened this issue Jul 12, 2013 · 1 comment

Comments

@dminnich
Copy link

I'd love to hear this is already doable and I'm missing something.

If not, this may be how to fix it....

page.py currently has this
render...
extra_pages = self.paginate()

The paginate function has logic to catch the site dictionary but it isn't getting it passed to it.

Once you enable that you can use site.pages to as a list and paginate through it in a template. I'd like for each tag in the site array to also include a pages list of wok.page.Page vars like page.subpages or site.pages. If that existed I think you could then paginate through pages that have a specific tag by setting site.tags['music'] or something like that in your template.

@mythmon
Copy link
Owner

mythmon commented Jan 23, 2014

Sorry for not getting to this sooner: I think the solution would be to use the (as of yet not documented) "Vary" feature, which is similar to paginate, except it generates different pages for each tag. If you are still interested in this, you should join #wok on Freenode and we can chat about it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants