1. Udated category layout

2. Improved scoping and styling for links
3. Sidebar collapse improvements
This commit is contained in:
Brandon Mathis
2011-07-15 15:50:48 -04:00
parent 4443fd4429
commit 8b6d83ae60
9 changed files with 84 additions and 56 deletions

View File

@ -1,10 +1,15 @@
---
layout: post
no_meta: true
layout: page
no_footer: true
---
<div class="blog-archives category">
<div id="blog-archives" class="category">
{% for post in site.categories[page.category] %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% unless year == this_year %}
{% assign year = this_year %}
<h2>{{ year }}</h2>
{% endunless %}
<article>
{% include archive_post.html %}
</article>

View File

@ -9,15 +9,13 @@ function getNav(){
});
}
function addSidebarToggler() {
$('#content').append('<a href="#" class="toggle-sidebar">&raquo;</a>');
$('#content').append('<span class="toggle-sidebar"></span>');
$('.toggle-sidebar').bind('click', function(e){
e.preventDefault();
if($('body').hasClass('collapse-sidebar')){
$('body').removeClass('collapse-sidebar');
e.target.innerHTML = '&raquo;';
} else {
$('body').addClass('collapse-sidebar');
e.target.innerHTML = '&laquo;';
}
});
sections = $('aside[role=sidebar] > section')