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'.
This commit is contained in:
		
							parent
							
								
									1beee0d59d
								
							
						
					
					
						commit
						705fdfb23d
					
				|  | @ -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` | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue