From fbd26d6e0d140b10d2507b5136969a2ba65e5478 Mon Sep 17 00:00:00 2001 From: uvok cheetah Date: Sun, 3 Dec 2023 13:28:34 +0100 Subject: First post has preference over excerpts --- _layouts/postlist.html | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to '_layouts') diff --git a/_layouts/postlist.html b/_layouts/postlist.html index 7ce3cbb..9e679a7 100644 --- a/_layouts/postlist.html +++ b/_layouts/postlist.html @@ -32,13 +32,12 @@ layout: default {{ post.title | escape }} - {%- if site.show_excerpts -%} - {{ post.excerpt }} - {%- assign showsep = true -%} - {# parens are invalid, right-to-left eval #} - {%- elsif forloop.first and paginator.page == 1 or paginator == site -%} + {%- if forloop.first and paginator.page == 1 or paginator == site -%} {{ post.content }} {%- assign showsep = true -%} + {%- elsif site.show_excerpts -%} + {{ post.excerpt }} + {%- assign showsep = true -%} {%- endif -%} -- cgit v1.2.3