summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruvok cheetah2023-12-03 13:27:39 +0100
committeruvok cheetah2023-12-03 13:33:39 +0100
commite0aed77013d88d68b572579b6ba0e9d918fe9e3c (patch)
tree47d7cb271c8c6fa3320fefda33f3a9b17b6433dd
parent0488080bd3977ea96a10a59529028c7e671b01b0 (diff)
Add separator (after first post)
-rw-r--r--_config.yml2
-rw-r--r--_layouts/postlist.html7
-rw-r--r--assets/main.scss6
3 files changed, 13 insertions, 2 deletions
diff --git a/_config.yml b/_config.yml
index a09e134..15b6b08 100644
--- a/_config.yml
+++ b/_config.yml
@@ -67,4 +67,4 @@ autopages:
collections:
enabled: false
-cssversion: "2023110101"
+cssversion: "2023120301"
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 -%}
<li>
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
<span class="post-meta">{{ post.date | date: date_format }}</span>
@@ -34,12 +34,17 @@ layout: default
</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 -%}
{{ post.content }}
+ {%- assign showsep = true -%}
{%- endif -%}
</div>
</li>
+ {%- if showsep -%}
+ <hr class="postsep" />
+ {%- endif -%}
{%- endfor -%}
</ul>
diff --git a/assets/main.scss b/assets/main.scss
index 7fb272d..500e2f7 100644
--- a/assets/main.scss
+++ b/assets/main.scss
@@ -60,3 +60,9 @@ a:visited {
top: 10px;
right: 10px;
}
+
+hr.postsep {
+ width: 70%;
+ margin: auto;
+ margin-bottom: 1em;
+}