diff --git a/templates/macros/list_posts.html b/templates/macros/list_posts.html
index ec36905..6fd7be0 100644
--- a/templates/macros/list_posts.html
+++ b/templates/macros/list_posts.html
@@ -10,9 +10,7 @@
{% for post in posts %}
{% if loop.index <= max %}
- {% if loop.index == max %}
- {% set bottom_divider = false %}
- {% elif loop.last %}
+ {% if loop.index == max or loop.last %}
{% set bottom_divider = false %}
{% else %}
{% set bottom_divider = true %}