Add trailing slash to paginate_path example.
https://github.com/jekyll/jekyll-paginate/issues/15#issuecomment-62322554
This commit is contained in:
parent
472c18e409
commit
b6f3adb6e3
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue