From 0e4c8342ab22ed06e6b65d4f5fc74f3daf457e79 Mon Sep 17 00:00:00 2001 From: Bart Kamphorst Date: Sat, 14 Mar 2020 19:28:54 +0100 Subject: [PATCH] Restore functionality for determining the position of the sidebar (left or right). --- lib/gollum/templates/wiki_content.mustache | 4 ++-- lib/gollum/views/page.rb | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/gollum/templates/wiki_content.mustache b/lib/gollum/templates/wiki_content.mustache index 31e42d14..e096bb15 100644 --- a/lib/gollum/templates/wiki_content.mustache +++ b/lib/gollum/templates/wiki_content.mustache @@ -11,12 +11,12 @@ {{/has_toc}} {{#has_sidebar}}
- {{/has_sidebar}} -
+
{{#has_header}}
diff --git a/lib/gollum/views/page.rb b/lib/gollum/views/page.rb index c9ab403f..c992db2f 100644 --- a/lib/gollum/views/page.rb +++ b/lib/gollum/views/page.rb @@ -122,6 +122,10 @@ module Precious def bar_side @bar_side.to_s end + + def left_bar + @bar_side == :left + end def has_sidebar if @sidebar