summary refs log tree commit diff stats
path: root/templates
diff options
context:
space:
mode:
authorAlan Pearce2023-06-20 18:21:33 +0200
committerAlan Pearce2023-06-20 18:21:33 +0200
commit5d1e2d2018aba1eef5820a285f7e9004070972de (patch)
tree9ebc609553afc24843f47568a497631ddf5d194c /templates
parentde9f90503fcd9d1d7af5f1ce8a09ff22aea0e743 (diff)
downloadwebsite-5d1e2d2018aba1eef5820a285f7e9004070972de.tar.lz
website-5d1e2d2018aba1eef5820a285f7e9004070972de.tar.zst
website-5d1e2d2018aba1eef5820a285f7e9004070972de.zip
homepage: only show posts under "recent posts"
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html1
1 files changed, 1 insertions, 0 deletions
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>