Create home page layout with paginated recent posts

This commit is contained in:
Michael Rose 2016-10-06 19:31:12 -04:00
parent 6ad9d1ef58
commit 18713fd757

13
_layouts/home.html Normal file
View file

@ -0,0 +1,13 @@
---
layout: archive
---
{% include base_path %}
<h3 class="archive__subtitle">{{ site.data.ui-text[site.locale].recent_posts | default: "Recent Posts" }}</h3>
{% for post in paginator.posts %}
{% include archive-single.html %}
{% endfor %}
{% include paginator.html %}