mmistakes / jekyll-theme-skinny-bones

A Jekyll starter with a variety of flexible layouts and components.
https://mmistakes.github.io/jekyll-theme-skinny-bones
MIT License
802 stars 907 forks source link

Pagination? #70

Closed bnbon closed 8 years ago

bnbon commented 8 years ago

Hello,

I only want to show six posts at a time on the homepage, how can I paginate this?

I use the following display code;

<div class="row">
{% for post in site.posts %}
    {% include post-grid.html %}
{% endfor %}
</div>

and this is the post...

<div class="col-xs-12 col-md-4 post" itemscope itemtype="http://schema.org/Article">
    <h2><a href="{{ site.url }}{{ post.url }}">{{ post.title }}</a></h2>
</div>

I want to show 6 at a time and then some basic bootstrap style pagination.

Can anyone help?

mmistakes commented 8 years ago

You'll have to install and setup the jekyll-paginate plugin to do this.

Check out some of my other themes if you want examples of how to code it as they support pagination out of the box.