Skip to content

Commit 48f632c

Browse files
committed
Merge pull request poole#94 from dapenggao/patch-2
Hide "Related Posts" section if it is empty
2 parents b069d23 + a3e29c8 commit 48f632c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

_layouts/post.html

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ <h1 class="post-title">{{ page.title }}</h1>
88
{{ content }}
99
</article>
1010

11+
{% if site.related_posts != empty %}
1112
<aside class="related">
1213
<h2>Related Posts</h2>
1314
<ul class="related-posts">
@@ -23,3 +24,4 @@ <h3>
2324
{% endfor %}
2425
</ul>
2526
</aside>
27+
{% endif %}

0 commit comments

Comments
 (0)