diff options
author | uvok cheetah | 2023-12-03 13:28:34 +0100 |
---|---|---|
committer | uvok cheetah | 2023-12-03 13:33:39 +0100 |
commit | fbd26d6e0d140b10d2507b5136969a2ba65e5478 (patch) | |
tree | c9316fb141d791b1e7aaa18d9e8cf25bcd7cfc96 | |
parent | e0aed77013d88d68b572579b6ba0e9d918fe9e3c (diff) |
First post has preference over excerpts
-rw-r--r-- | _layouts/postlist.html | 9 |
1 files changed, 4 insertions, 5 deletions
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 }} </a> </h3> - {%- 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 -%} </div> </li> |