~xdavidwu/xdavidwu.link

3d685a192ffd0f154074369154505ce7d4367866 — Michael Rose 9 years ago 3bbb097
Show related posts only when there are 1 or more
1 files changed, 2 insertions(+), 0 deletions(-)

M _layouts/post.html
M _layouts/post.html => _layouts/post.html +2 -0
@@ 55,6 55,7 @@
</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>


@@ 64,6 65,7 @@
    </ul>
    <hr />
  </div><!-- /.related-articles -->
  {% endif %}
  <footer>
    {% include _footer.html %}
  </footer>