From 705fdfb23d62b6ef7388f75db8da7df35647dbc1 Mon Sep 17 00:00:00 2001 From: Michael Tu Date: Wed, 18 Feb 2015 03:13:57 -0500 Subject: [PATCH] Add a '/' to paginate_path If this '/' is not present, then the second pagination code snippet under the "Render the paginated Posts" section will have a bug. Let's say my page 1 is located at host:port/blog/index.html and my paginate_path setting in _config.yml is "blog/page:num/". The observation if the paginate_path does not start with a '/' is that the href generated for the page numbers will have 2 'blogs', i.e. for page 2 the href will incorrectly appear as 'host:port/blog/blog/page2' instead of just 'host:port/blog/page2'. --- site/_docs/pagination.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/_docs/pagination.md b/site/_docs/pagination.md index c2662f04..9352827e 100644 --- a/site/_docs/pagination.md +++ b/site/_docs/pagination.md @@ -33,7 +33,7 @@ page in the generated site. You may also specify the destination of the pagination pages: {% highlight yaml %} -paginate_path: "blog/page:num/" +paginate_path: "/blog/page:num/" {% endhighlight %} This will read in `blog/index.html`, send it each pagination page in Liquid as `paginator`