Browse Source

fixed addSidebarToggler where index and section were flip-flopped

unreleased_contents
Brandon Mathis 12 years ago
parent
commit
75cc24c8d6
  1. 2
      .themes/classic/source/javascripts/octopress.js

2
.themes/classic/source/javascripts/octopress.js

@ -28,7 +28,7 @@ function addSidebarToggler() {
}
var sections = $('aside.sidebar > section');
if (sections.length > 1) {
sections.each(function(section, index){
sections.each(function(index, section){
if ((sections.length >= 3) && index % 3 === 0) {
$(section).addClass("first");
}

Loading…
Cancel
Save