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

Indicate paginated content #111

Open
alanorth opened this issue Feb 11, 2015 · 0 comments
Open

Indicate paginated content #111

alanorth opened this issue Feb 11, 2015 · 0 comments

Comments

@alanorth
Copy link
Contributor

Google (for one) recommends indicating paginated content so they can index and display series of pages more intelligently and reduce displaying duplicated content. In our case this would come in handy on our index and "page 2", "page 3" etc, which are all continuations of the same logical "list of blog posts" page.

The index page would have the following:

<link rel="next" href="https://nairobilug.or.ke/index2.html" />

Then the second index page would have the following:

<link rel="prev" href="https://nairobilug.or.ke/" />
<link rel="next" href="https://nairobilug.or.ke/index3.html" />

Not sure how this would work, because our blog is static, so the logic would have to happen at blog generation time. Can Jinja2 know how many pages we have, and which page it's on? Ping @raymondwanyoike @jasonrogena

@rwanyoike rwanyoike self-assigned this Jul 1, 2016
@rwanyoike rwanyoike removed their assignment Jul 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants