Skip to content

Commit

Permalink
hide sidebars if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
kblomqvist committed Jan 29, 2012
1 parent 5dfb0d3 commit 9ce8fb8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions _config.yml
@@ -1,5 +1,8 @@
markdown: rdiscount
pygments: true

lsi: true
paginate: 20

exclude:
- CNAME
2 changes: 1 addition & 1 deletion _layouts/post.html
Expand Up @@ -4,7 +4,7 @@
{% assign post = page %}
<div class="hfeed">{% include post-article.html %}</div>

{% if site.related_posts %}
{% if site.related_posts.size > 0 %}
<aside>
<h3>Related posts</h3>
<ul class="posts-list hfeed">
Expand Down
2 changes: 2 additions & 0 deletions archive/index.html
Expand Up @@ -12,6 +12,7 @@
</ul>
</article>

{% if site.tags.size > 0 %}
<aside>
<h3>Posts' tags list</h3>
<ul class="tags-list">
Expand All @@ -20,3 +21,4 @@ <h3>Posts' tags list</h3>
{% endfor %}
</ul>
</aside>
{% endif %}

0 comments on commit 9ce8fb8

Please sign in to comment.