From 5d1e2d2018aba1eef5820a285f7e9004070972de Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 20 Jun 2023 18:21:33 +0200 Subject: homepage: only show posts under "recent posts" --- content/_index.md | 2 -- templates/index.html | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/content/_index.md b/content/_index.md index 961680d..2bc1185 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,7 +1,5 @@ +++ title = "Home" -sort_by = "date" -paginate_reversed = true +++
I work as a Full-stack Developer in Berlin. I occasionally write about Emacs and
diff --git a/templates/index.html b/templates/index.html
index f84b87e..7370d21 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -11,6 +11,7 @@
Latest Posts
+ {%- set section = get_section(path="post/_index.md") %}
{%- for page in section.pages | slice(end=3) %}