From e0aed77013d88d68b572579b6ba0e9d918fe9e3c Mon Sep 17 00:00:00 2001 From: uvok cheetah Date: Sun, 3 Dec 2023 13:27:39 +0100 Subject: Add separator (after first post) --- _layouts/postlist.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to '_layouts/postlist.html') diff --git a/_layouts/postlist.html b/_layouts/postlist.html index f50748e..7ce3cbb 100644 --- a/_layouts/postlist.html +++ b/_layouts/postlist.html @@ -22,7 +22,7 @@ layout: default {% endif %} {%- for post in paginator.posts -%} - + {%- assign showsep = false -%}
  • {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%} {{ post.date | date: date_format }} @@ -34,12 +34,17 @@ layout: default {%- 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 -%} {{ post.content }} + {%- assign showsep = true -%} {%- endif -%}
  • + {%- if showsep -%} +
    + {%- endif -%} {%- endfor -%} -- cgit v1.2.3