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
|
.sass-cache
|
||||||
_asset_bundler_cache
|
_asset_bundler_cache
|
||||||
_site
|
_site
|
||||||
docs/Rakefile
|
docs/*
|
||||||
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
|
|
||||||
|
@ -5,7 +5,9 @@
|
|||||||
<div class="grid__wrapper">
|
<div class="grid__wrapper">
|
||||||
{% for post in posts limit:4 %}
|
{% for post in posts limit:4 %}
|
||||||
{% if post.id == page.id %}{% continue %}{% endif %}
|
{% 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 %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user