Skip to content

Commit 04e91a3

Browse files
committed
fix(2327): limit horizontal layout to 3 posts
1 parent edbee97 commit 04e91a3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

templates/v3/includes/_post_card.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
{% if items %}
2828
<ul class="card-group__list">
2929
{% for item in items %}
30+
{% if layout != "horizontal" or forloop.counter0 < 3 %}
3031
<li class="card-group__item">
3132
{% if item.title or item.url or item.date or item.category or item.tag %}
3233
<article class="post-card">
@@ -52,6 +53,7 @@ <h3 class="post-card__title">{{ item.title }}</h3>
5253
</article>
5354
{% endif %}
5455
</li>
56+
{% endif %}
5557
{% endfor %}
5658
</ul>
5759
{% endif %}

0 commit comments

Comments
 (0)