aboutsummaryrefslogtreecommitdiff
path: root/.themes/classic/source/javascripts
diff options
context:
space:
mode:
Diffstat (limited to '.themes/classic/source/javascripts')
-rw-r--r--.themes/classic/source/javascripts/octopress.js20
1 files changed, 11 insertions, 9 deletions
diff --git a/.themes/classic/source/javascripts/octopress.js b/.themes/classic/source/javascripts/octopress.js
index 29df1981..fc679f11 100644
--- a/.themes/classic/source/javascripts/octopress.js
+++ b/.themes/classic/source/javascripts/octopress.js
@@ -11,15 +11,17 @@ function getNav() {
}
function addSidebarToggler() {
- $('#content').append('<span class="toggle-sidebar"></span>');
- $('.toggle-sidebar').bind('click', function(e) {
- e.preventDefault();
- if ($('body').hasClass('collapse-sidebar')) {
- $('body').removeClass('collapse-sidebar');
- } else {
- $('body').addClass('collapse-sidebar');
- }
- });
+ if(!$('body').hasClass('sidebar-footer')) {
+ $('#content').append('<span class="toggle-sidebar"></span>');
+ $('.toggle-sidebar').bind('click', function(e) {
+ e.preventDefault();
+ if ($('body').hasClass('collapse-sidebar')) {
+ $('body').removeClass('collapse-sidebar');
+ } else {
+ $('body').addClass('collapse-sidebar');
+ }
+ });
+ }
var sections = $('aside.sidebar > section');
if (sections.length > 1) {
sections.each(function(section, index){