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

Access to next and previous post in metadata #175

Open
viniciusdacal opened this issue Sep 2, 2015 · 2 comments
Open

Access to next and previous post in metadata #175

viniciusdacal opened this issue Sep 2, 2015 · 2 comments

Comments

@viniciusdacal
Copy link
Contributor

@UltCombo @jaydson
Would be nice if we could access some metadata about next and previous post from the current post.
That would be usefull to make previous and next links, as we can see here
http://www.viniciusdacal.com/pt/iniciante/2015/01/29/o-basico-do-basico-do-git-e-do-github.html
What do yout think guys?

@jaydson
Copy link
Contributor

jaydson commented Sep 2, 2015

Yep, that's sounds like a good idea.
But, I don't know exactly where to put those informations.
Perhaps we can focus on improve the issue #5 and have a full solution for pagination.

@UltCombo
Copy link
Member

UltCombo commented Sep 2, 2015

Exposing a next/prev link on the post template (and perhaps the page template now that we're merging their generation code) sounds good to me.

I'm just not sure how complex it would be to implement. Right now, we generate posts in parallel and sort their metadata after all posts are generated.

I believe this would require reading all posts' metadata, normalizing and sorting them before starting to render the templates.

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

3 participants