make related posts a list

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

8
.gitignore vendored
View File

@ -30,10 +30,4 @@ codekit-config.json
.sass-cache
_asset_bundler_cache
_site
docs/Rakefile
docs/_data/theme.yml
docs/_docs/22-faq.md
docs/_includes/after-content.html
docs/_includes/before-related.html
docs/_includes/comments-providers/scripts.html
docs/_posts/2009-10-06-edge-case-broken-highlighting.md
docs/*

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>