Sha256: e30dbfa340a3df730ed0696ae73499c9eb0216e6a11d9696ec70ddfa03af5a7c
Contents?: true
Size: 1.33 KB
Versions: 5
Compression:
Stored size: 1.33 KB
Contents
{% assign post = include.post %} <aside class="related" role="complementary"> <h2>Related Posts</h2> <hr/> <ul class="related-posts"> {% if site.use_lsi %} {% for post in site.related_posts limit:3 %} {% include post-list-item.html post=post %} {% endfor %} {% elsif post.categories.first %} {% assign category_posts = site.categories[post.categories.first] %} {% assign plusone = false %} {% for post in category_posts limit:4 %} {% if post.url == page.url %} {% assign plusone = true %} {% continue %} {% endif %} {% if forloop.index < 4 or plusone == true %} {% include post-list-item.html post=post %} {% endif %} {% endfor %} {% elsif post.tags.first %} {% assign tag_posts = site.tags[post.tags.first] %} {% assign plusone = false %} {% for post in tag_posts limit:4 %} {% if post.url == page.url %} {% assign plusone = true %} {% continue %} {% endif %} {% if forloop.index < 4 or plusone == true %} {% include post-list-item.html post=post %} {% endif %} {% endfor %} {% else %} {% for post in site.related_posts limit:3 %} {% include post-list-item.html post=post %} {% endfor %} {% endif %} </ul> </aside>
Version data entries
5 entries across 5 versions & 1 rubygems