소스 검색

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