Skip to content

Commit e637093

Browse files
authored
Merge pull request poole#242 from poole/related-post-size
Add size check for related posts
2 parents 7c51378 + b9b13c7 commit e637093

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

_layouts/post.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ <h1 class="post-title">{{ page.title }}</h1>
88
{{ content }}
99
</div>
1010

11+
{% if site.related_posts.size >= 1 %}
1112
<div class="related">
12-
<h2>Related Posts</h2>
13+
<h2>Related posts</h2>
1314
<ul class="related-posts">
1415
{% for post in site.related_posts limit:3 %}
1516
<li>
@@ -23,3 +24,4 @@ <h3>
2324
{% endfor %}
2425
</ul>
2526
</div>
27+
{% endif %}

0 commit comments

Comments
 (0)