-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
Possibility to do a next / prev based on the content type? #319
Comments
This feature doesn't currently exist. We can add it though. Need to figure out the right way to do it so it works for everyone. |
Would be great! Thanks for picking this up! |
@mpas, I'm using something like that:
That only works if your pages are at the beginning or end of the list. |
👍 I'd appreciate this feature. @yacoob doesn't that approach fail if |
In 0.13 there is .NextInSection, .PrevInSection. |
@bep totally missed that...thank you! |
It doesn't seem to work unless you're on a section page though. It's returning me nothing on a single post page. |
It works for what it says it does. Nothing more, nothing less. |
Note/Update: This issue is marked as stale, and I may have said something earlier about "opening a thread on the discussion forum". Please don't. If this is a bug and you can still reproduce this error on the latest If this is a feature request, and you feel that it is still relevant and valuable, please tell us why. |
Replaced fmt.Frpintf calls with fmt.Fprint when there's no formatting…
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
When trying to implement Prev / Next for a specific content type i run into a problem when i have another content type like for exampe pages.
This results in the fact that 'post' and ' page' contenttypes are mixed. Is there a way to limit the Prev / Next to a specific contenttype?
I would like to have only Prev / Next for the contenttype 'post'
The text was updated successfully, but these errors were encountered: