]> git.bitcoin.ninja Git - blog/commitdiff
Update post.html
authorPeter Gao <dapenggao@users.noreply.github.com>
Sat, 16 May 2015 12:34:15 +0000 (20:34 +0800)
committerPeter Gao <dapenggao@users.noreply.github.com>
Sat, 16 May 2015 12:34:15 +0000 (20:34 +0800)
_layouts/post.html

index 9ac13d44b0cbbb35568828ab3bcca533833aeb96..5554be9f20d1a393c8ff0c1e0ae970396bbe719f 100644 (file)
@@ -8,6 +8,7 @@ layout: default
   {{ content }}
 </article>
 
+{% if site.related_posts != empty %}
 <aside class="related">
   <h2>Related Posts</h2>
   <ul class="related-posts">
@@ -23,3 +24,4 @@ layout: default
     {% endfor %}
   </ul>
 </aside>
+{% endif %}