diff options
author | Alan Pearce | 2023-06-20 18:21:33 +0200 |
---|---|---|
committer | Alan Pearce | 2023-06-20 18:21:33 +0200 |
commit | 5d1e2d2018aba1eef5820a285f7e9004070972de (patch) | |
tree | 9ebc609553afc24843f47568a497631ddf5d194c | |
parent | de9f90503fcd9d1d7af5f1ce8a09ff22aea0e743 (diff) | |
download | website-5d1e2d2018aba1eef5820a285f7e9004070972de.tar.lz website-5d1e2d2018aba1eef5820a285f7e9004070972de.tar.zst website-5d1e2d2018aba1eef5820a285f7e9004070972de.zip |
homepage: only show posts under "recent posts"
-rw-r--r-- | content/_index.md | 2 | ||||
-rw-r--r-- | templates/index.html | 1 |
2 files changed, 1 insertions, 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 +++ <p class="p-note note"> 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 @@ <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> |