-
Notifications
You must be signed in to change notification settings - Fork 182
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
How to get links to all calendar/tag pages #374
Comments
Looks like you are right, that data for the full set is never captured or shared with templates: It kind of happens here: Where would it make sense to share that data? Along side prev_page and next_page variables? I can refactor things to make that possible. |
I started to look into making a variable called What I managed to do instead was to hack together a helper that would keep wandering through If this is a pretty fringe request I don't mind if you close it off given that there is a workaround -- it just took me quite a while to try to figure out how I could get a list of all the pages and I felt like other people might also want to do that. |
That's clever. Can you put your solution code here for future folks searching for this? |
Yep -- I should be able to post something tonight. I'll edit this comment with the general idea. EDIT: Here's the code I promised. It's fairly specific to my perhaps-strange use case, but could probably be extended for other needs. I wanted only one blog article per page, but wanted to list all of the other pages for the given tag/calendar page on each page. That way, you could navigate the tags and calendar pages without losing the context of being interested in a certain calendar range or tag. Here's the custom helper I made with some helper functions:
Here's how I use it in the template:
|
ℹ️ This issue is stale because it has been open for more than 90 days with no activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions. |
Expected behaviour
Actual behaviour
prev_page
andnext_page
links, and can't figure out a clean interface by which to obtain links to all of the other pages.Additional information
The text was updated successfully, but these errors were encountered: