projects
/
blog
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
b069d23
)
Merge pull request #94 from dapenggao/patch-2
author
Mark Otto
<markd.otto@gmail.com>
Sun, 21 Jun 2015 23:36:53 +0000
(16:36 -0700)
committer
Mark Otto
<markd.otto@gmail.com>
Sun, 21 Jun 2015 23:36:53 +0000
(16:36 -0700)
Hide "Related Posts" section if it is empty
_layouts/post.html
patch
|
blob
|
history
diff --git
a/_layouts/post.html
b/_layouts/post.html
index 17433f3ef436a6f4ba9d6ff3d615d3afc3ab589a..ec63afc10d770bfaf47daee2c3d2231ce39c8c05 100644
(file)
--- a/
_layouts/post.html
+++ b/
_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 %}