mirror of
https://github.com/welpo/tabi.git
synced 2025-10-11 07:46:15 +02:00
refactor: simplify loop bottom divider logic
This commit is contained in:
parent
21820d6b31
commit
9ed985fa09
1 changed files with 1 additions and 3 deletions
|
@ -10,9 +10,7 @@
|
|||
<div class="bloglist-container">
|
||||
{% 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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue