updated to use configurable sidebars

This commit is contained in:
Brandon Mathis 2011-07-30 15:44:23 -04:00
parent f42e89b85a
commit 9f2df5739a
5 changed files with 26 additions and 5 deletions

View File

@ -40,7 +40,7 @@ default_asides: [asides/recent_posts.html, asides/twitter.html, asides/delicious
# Each layout uses the default asides, but they can have their own asides instead. Simply uncomment the lines below # Each layout uses the default asides, but they can have their own asides instead. Simply uncomment the lines below
# and add an array with the asides you want to use. # and add an array with the asides you want to use.
# blog_index_asides: blog_index_asides: [asides/twitter.html, asides/delicious.html, asides/pinboard.html]
# post_asides: # post_asides:
# page_asides: # page_asides:

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>