summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/index.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html
index 575141f..98cc148 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -2,4 +2,12 @@
{% block content %}
{{ section.content | safe }}
+<br/>
+recent posts
+{% set section = get_section(path="blog/_index.md") %}
+<ul>
+ {% for page in section.pages | slice(end=5) %}
+ <li><a href="{{page.permalink}}">{{page.title}}</a> ({{page.date}})</li>
+ {% endfor %}
+</ul>
{% endblock content %}