Skip to content
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

Get the URL of the page on which the post is located #73

Open
rygel opened this issue Feb 3, 2014 · 1 comment
Open

Get the URL of the page on which the post is located #73

rygel opened this issue Feb 3, 2014 · 1 comment

Comments

@rygel
Copy link

rygel commented Feb 3, 2014

Is it possible to add a function which returns the URL of the page on which the post is located?

For example there are 15 posts, 5 posts per page, and the post "blah" is on page 3.
I want to display on the post "blah" a link back to the page where it is located (page 3). This needs to be dynamically adjusted by Poet, because if new posts are added the post "blah" will move to page 4, etc.

Thanks!

@andy-williams
Copy link

Maybe you can have something like this:
https://gist.github.com/andy-williams/9589990

then you can use the pageURL() helper function to get the page url

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

No branches or pull requests

2 participants