We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 781d759 commit 4888a20Copy full SHA for 4888a20
_includes/tagcloud.html
@@ -1,7 +1,8 @@
1
2
{% if site.plugins contains "jekyll/tagging" %}
3
-<h2>All tags</h2>
4
-<div class="tag-cloud">
5
- {{ site | tag_cloud }}
6
-</div>
+{% assign size = site | tag_cloud | size %}
+ {% if size != 0 %}
+ <h2>All tags</h2>
+ <div class="tag-cloud">{{ site | tag_cloud }}</div>
7
+ {% endif %}
8
{% endif %}
_layouts/post.html
@@ -24,6 +24,8 @@ <h1 class="post-title">{{ page.title }}</h1>
24
</div>
25
26
27
+{% assign size = site.related_posts | size %}
28
+{% if size != 0 %}
29
<div class="related">
30
<h2>Related Posts</h2>
31
<ul class="related-posts">
@@ -38,4 +40,5 @@ <h3>
38
40
{% endfor %}
39
41
</ul>
42
43
+{% endif %}
44
{% include tagcloud.html %}
0 commit comments