homepage: only show posts under "recent posts"
1 file changed, 1 insertion(+), 0 deletions(-)
jump to
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>