Show related posts only when there are 1 or more
This commit is contained in:
parent
3bbb09770d
commit
3d685a192f
1 changed files with 2 additions and 0 deletions
|
@ -55,6 +55,7 @@
|
||||||
</div><!-- /#main -->
|
</div><!-- /#main -->
|
||||||
|
|
||||||
<div class="footer-wrap">
|
<div class="footer-wrap">
|
||||||
|
{% if site.related_posts.size > 0 %}
|
||||||
<div class="related-articles">
|
<div class="related-articles">
|
||||||
<h4>You might also enjoy <small class="pull-right">(<a href="{{ site.url }}/posts/">View all posts</a>)</small></h4>
|
<h4>You might also enjoy <small class="pull-right">(<a href="{{ site.url }}/posts/">View all posts</a>)</small></h4>
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -64,6 +65,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
<hr />
|
<hr />
|
||||||
</div><!-- /.related-articles -->
|
</div><!-- /.related-articles -->
|
||||||
|
{% endif %}
|
||||||
<footer>
|
<footer>
|
||||||
{% include _footer.html %}
|
{% include _footer.html %}
|
||||||
</footer>
|
</footer>
|
||||||
|
|
Loading…
Add table
Reference in a new issue