Add permalink warning to pagination docs

Fixes https://github.com/jekyll/jekyll-paginate/issues/25
This commit is contained in:
Cory Simmons 2015-03-06 01:17:02 -05:00
parent 66785b43ba
commit 013f7edc83
1 changed files with 7 additions and 0 deletions

View File

@ -42,6 +42,13 @@ starting with `2`. If a site has 12 posts and specifies `paginate: 5`, Jekyll wi
`blog/index.html` with the first 5 posts, `blog/page2/index.html` with the next 5 posts `blog/index.html` with the first 5 posts, `blog/page2/index.html` with the next 5 posts
and `blog/page3/index.html` with the last 2 posts into the destination directory. and `blog/page3/index.html` with the last 2 posts into the destination directory.
<div class="note warning">
<h5>Don't set a permalink</h5>
<p>
Setting a permalink in the front matter of your blog page will cause pagination to break. Just omit the permalink.
</p>
</div>
## Liquid Attributes Available ## Liquid Attributes Available
The pagination plugin exposes the `paginator` liquid object with the following The pagination plugin exposes the `paginator` liquid object with the following