mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-12-23 16:08:53 -05:00
updated to use configurable sidebars
This commit is contained in:
parent
f42e89b85a
commit
9f2df5739a
@ -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
|
||||
# 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:
|
||||
# page_asides:
|
||||
|
||||
|
@ -6,9 +6,6 @@
|
||||
<div id="main">
|
||||
<div id="content">
|
||||
{{ content | expand_urls: root_url | backtick_codeblock | smart_quotes }}
|
||||
{% unless page.sidebar == false %}
|
||||
<aside role=sidebar>{% include sidebar.html %}</aside>
|
||||
{% endunless %}
|
||||
</div>
|
||||
</div>
|
||||
<footer>{% include footer.html %}</footer>
|
||||
|
@ -29,3 +29,12 @@ layout: default
|
||||
</section>
|
||||
{% endif %}
|
||||
</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 %}
|
||||
|
@ -24,3 +24,12 @@ single: true
|
||||
</section>
|
||||
{% endif %}
|
||||
</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 %}
|
||||
|
@ -1,6 +1,5 @@
|
||||
---
|
||||
layout: default
|
||||
meta: false
|
||||
footer: false
|
||||
---
|
||||
<div class="blog-index">
|
||||
@ -36,3 +35,10 @@ footer: false
|
||||
</script>
|
||||
{% endif %}
|
||||
</div>
|
||||
<aside role=sidebar>
|
||||
{% if site.blog_index_asides.size %}
|
||||
{% include_array blog_index_asides %}
|
||||
{% else %}
|
||||
{% include_array default_asides %}
|
||||
{% endif %}
|
||||
</aside>
|
||||
|
Loading…
Reference in New Issue
Block a user