Merge pull request #3091 from rovrov/master

This commit is contained in:
Parker Moore 2014-11-16 20:14:50 -08:00
commit d9cdc7992a
1 changed files with 2 additions and 2 deletions

View File

@ -35,11 +35,11 @@ page in the generated site.
You may also specify where the destination of the pagination pages: You may also specify where the destination of the pagination pages:
{% highlight yaml %} {% highlight yaml %}
paginate_path: "blog/page:num" paginate_path: "blog/page:num/"
{% endhighlight %} {% endhighlight %}
This will read in `blog/index.html`, send it each pagination page in Liquid as `paginator` This will read in `blog/index.html`, send it each pagination page in Liquid as `paginator`
and write the output to `blog/page:num`, where `:num` is the pagination page number, and write the output to `blog/page:num/`, where `:num` is the pagination page number,
starting with `2`. If a site has 12 posts and specifies `paginate: 5`, Jekyll will write starting with `2`. If a site has 12 posts and specifies `paginate: 5`, Jekyll will write
`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.