diff --git a/.gitignore b/.gitignore index de7822d7..5518c45b 100644 --- a/.gitignore +++ b/.gitignore @@ -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/* diff --git a/_includes/page__related.html b/_includes/page__related.html index 9777865e..546fca79 100644 --- a/_includes/page__related.html +++ b/_includes/page__related.html @@ -5,7 +5,9 @@
{% 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 %}