Skip to content

Commit

Permalink
Show related posts only when there are 1 or more
Browse files Browse the repository at this point in the history
  • Loading branch information
mmistakes authored and vlajos committed Sep 24, 2015
1 parent 8d809be commit f4cac7a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ <h1><a href="{{ site.url }}{{ page.url }}" rel="bookmark" title="{{ page.title }
</div><!-- /#main -->

<div class="footer-wrap">
{% if site.related_posts.size > 0 %}
<div class="related-articles">
<h4>You might also enjoy <small class="pull-right">(<a href="{{ site.url }}/posts/">View all posts</a>)</small></h4>
<ul>
Expand All @@ -64,6 +65,7 @@ <h4>You might also enjoy <small class="pull-right">(<a href="{{ site.url }}/post
</ul>
<hr />
</div><!-- /.related-articles -->
{% endif %}
<footer>
{% include _footer.html %}
</footer>
Expand Down

0 comments on commit f4cac7a

Please # to comment.