homepage: only show posts under "recent posts"
Alan Pearce alan@alanpearce.eu
Tue, 20 Jun 2023 18:21:33 +0200
2 files changed, 1 insertions(+), 2 deletions(-)
M content/_index.md → content/_index.md
@@ -1,7 +1,5 @@ +++ title = "Home" -sort_by = "date" -paginate_reversed = true +++ <p class="p-note note"> I work as a Full-stack Developer in Berlin. I occasionally write about Emacs and
M templates/index.html → templates/index.html
@@ -11,6 +11,7 @@ </div> <section> <h2>Latest Posts</h2> <ul class="h-feed"> + {%- set section = get_section(path="post/_index.md") %} {%- for page in section.pages | slice(end=3) %} <li class="h-entry"> <time class="dt-published" datetime="{{ page.date | date(format="%+") }}">{{ page.date | date(format=config.extra.date_format) }}</time>