I\'m using Jekyll for a static site and I\'m trying to generate the blog as a subdirectory/subfolder:
http://example.com/blog
In the direct
I found a fix via this page Basically it involves a bit of a hack to figure out if you are on the nth page of the blog and then includes a file that pulls in you blog section.
Create a file in _includes/custom/
called pagination
. In that have your pagination code
{% for post in paginator.posts %}
{{ post.title }}
{{ post.content }}
{% endfor %}
Now in your _layout/index.html
add
{% if paginator.page != 1 %}
{% include custom/pagination %}
{% else %}
The original content of index
{% endif %}