Create home page layout with paginated recent posts
This commit is contained in:
parent
6ad9d1ef58
commit
18713fd757
1 changed files with 13 additions and 0 deletions
13
_layouts/home.html
Normal file
13
_layouts/home.html
Normal 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 %}
|
Loading…
Reference in a new issue