浏览代码

Update post.html

Peter Gao 10 年之前
父节点
当前提交
a3e29c8cc1
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      _layouts/post.html

+ 2 - 0
_layouts/post.html

@@ -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 %}