added multi sidebar support

This commit is contained in:
Brandon Mathis 2011-07-30 12:04:33 -04:00
parent 141800087f
commit 1db23acd78
4 changed files with 25 additions and 4 deletions

View File

@ -6,9 +6,6 @@
<div id="main"> <div id="main">
<div id="content"> <div id="content">
{{ content | expand_urls: root_url | backtick_codeblock | smart_quotes }} {{ content | expand_urls: root_url | backtick_codeblock | smart_quotes }}
{% unless page.sidebar == false %}
<aside role=sidebar>{% include sidebar.html %}</aside>
{% endunless %}
</div> </div>
</div> </div>
<footer>{% include footer.html %}</footer> <footer>{% include footer.html %}</footer>

View File

@ -29,3 +29,12 @@ layout: default
</section> </section>
{% endif %} {% endif %}
</div> </div>
{% unless page.sidebar == false %}
<aside role=sidebar>
{% if site.page_asides.size %}
{% include_array page_asides %}
{% else %}
{% include_array default_asides %}
{% endif %}
</aside>
{% endunless %}

View File

@ -24,3 +24,12 @@ single: true
</section> </section>
{% endif %} {% endif %}
</div> </div>
{% unless page.sidebar == false %}
<aside role=sidebar>
{% if site.post_asides.size %}
{% include_array post_asides %}
{% else %}
{% include_array default_asides %}
{% endif %}
</aside>
{% endunless %}

View File

@ -1,6 +1,5 @@
--- ---
layout: default layout: default
meta: false
footer: false footer: false
--- ---
<div class="blog-index"> <div class="blog-index">
@ -36,3 +35,10 @@ footer: false
</script> </script>
{% endif %} {% endif %}
</div> </div>
<aside role=sidebar>
{% if site.blog_index_asides.size %}
{% include_array blog_index_asides %}
{% else %}
{% include_array default_asides %}
{% endif %}
</aside>