make related posts a list

This commit is contained in:
2024-04-28 23:28:33 +02:00
parent 222ff81aaf
commit a7d0449a36
2 changed files with 4 additions and 8 deletions

View File

@@ -5,7 +5,9 @@
<div class="grid__wrapper">
{% for post in posts limit:4 %}
{% if post.id == page.id %}{% continue %}{% endif %}
{% include archive-single.html type="grid" %}
{% if count >= limit %}{% break %}{% endif %}
{% assign count = count | plus: 1 %}
{% include archive-single.html type="list" %}
{% endfor %}
</div>
</div>