Skip to content

Commit

Permalink
Restore homepage
Browse files Browse the repository at this point in the history
Lists posts in “home” layout (~taken from minima)
  • Loading branch information
regisd committed Nov 26, 2017
1 parent a51e3a5 commit 4d18fe8
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
22 changes: 22 additions & 0 deletions _layouts/home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
layout: default
---

<div class="home">

{{ content }}

{% for post in site.posts %}
<h1>
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
</h1>
{% assign date_format = site.minima.date_format | default: "%d %b %Y" %}
<p><span class="post-meta">{{ post.date | date: date_format }}</span></p>

<p>{{ post.excerpt }}</p>
</li>
{% endfor %}

<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | relative_url }}">via RSS</a></p>

</div>
3 changes: 3 additions & 0 deletions index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
layout: home
---

0 comments on commit 4d18fe8

Please sign in to comment.