make related posts a list
This commit is contained in:
parent
222ff81aaf
commit
a7d0449a36
8
.gitignore
vendored
8
.gitignore
vendored
@ -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/*
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user