Use archive template for home page
- Remove home specific _layout
This commit is contained in:
parent
0788e48bb2
commit
427ed394ad
2 changed files with 9 additions and 14 deletions
|
@ -1,12 +0,0 @@
|
|||
---
|
||||
layout: default
|
||||
---
|
||||
|
||||
{% include absolute-url.liquid %}
|
||||
|
||||
<div class="archive">
|
||||
<h3><a href="{{ absurl }}/posts/">Recent Posts</a></h3>
|
||||
{% for post in site.posts limit:5 %}
|
||||
{% include post-single.html %}
|
||||
{% endfor %}
|
||||
</div><!-- /#index -->
|
|
@ -1,8 +1,15 @@
|
|||
---
|
||||
layout: home
|
||||
layout: archive
|
||||
permalink: /
|
||||
excerpt: "A minimal Jekyll theme for your blog by designer Michael Rose."
|
||||
header:
|
||||
image: unsplash-image-7.jpg
|
||||
caption: "Photo credit: [**Unsplash**](https://unsplash.com)"
|
||||
---
|
||||
---
|
||||
{% include absolute-url.liquid %}
|
||||
|
||||
### Recent Posts
|
||||
|
||||
{% for post in site.posts limit:5 %}
|
||||
{% include archive-list-single.html %}
|
||||
{% endfor %}
|
Loading…
Reference in a new issue