summaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
authorLibravatar Silas Bartha <[email protected]>2024-08-18 15:51:03 -0400
committerLibravatar Silas Bartha <[email protected]>2024-08-18 15:51:03 -0400
commit2e5297636edf320c78e2dc295425b2a70766c2fe (patch)
treec540d182cc9dce9a3cb3266aba1a540f47b90e79 /templates/index.html
parent16f288218d6fa927718368103ed17fc4958284c5 (diff)
added recent posts to index
Diffstat (limited to 'templates/index.html')
-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 %}