diff options
author | Silas Bartha <[email protected]> | 2024-08-18 15:51:03 -0400 |
---|---|---|
committer | Silas Bartha <[email protected]> | 2024-08-18 15:51:03 -0400 |
commit | 2e5297636edf320c78e2dc295425b2a70766c2fe (patch) | |
tree | c540d182cc9dce9a3cb3266aba1a540f47b90e79 /templates | |
parent | 16f288218d6fa927718368103ed17fc4958284c5 (diff) |
added recent posts to index
Diffstat (limited to 'templates')
-rw-r--r-- | templates/index.html | 8 |
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 %} |