diff options
Diffstat (limited to '.themes/classic/source')
-rw-r--r-- | .themes/classic/source/_layouts/category_index.html | 11 | ||||
-rw-r--r-- | .themes/classic/source/javascripts/octopress.js | 4 |
2 files changed, 9 insertions, 6 deletions
diff --git a/.themes/classic/source/_layouts/category_index.html b/.themes/classic/source/_layouts/category_index.html index 699f3dec..cce9777c 100644 --- a/.themes/classic/source/_layouts/category_index.html +++ b/.themes/classic/source/_layouts/category_index.html @@ -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> diff --git a/.themes/classic/source/javascripts/octopress.js b/.themes/classic/source/javascripts/octopress.js index 6a5ad2ea..bdc47683 100644 --- a/.themes/classic/source/javascripts/octopress.js +++ b/.themes/classic/source/javascripts/octopress.js @@ -9,15 +9,13 @@ function getNav(){ }); } function addSidebarToggler() { - $('#content').append('<a href="#" class="toggle-sidebar">»</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 = '»'; } else { $('body').addClass('collapse-sidebar'); - e.target.innerHTML = '«'; } }); sections = $('aside[role=sidebar] > section') |