Merge pull request #422 from nature/sidebar_rendering_in_subfolders

Sidebar rendering in subfolders.
This commit is contained in:
bootstraponline
2012-07-09 09:19:11 -07:00
18 changed files with 60 additions and 12 deletions
+2 -3
View File
@@ -298,9 +298,8 @@ module Precious
def show_page_or_file(fullpath)
path = extract_path(fullpath)
name = extract_name(fullpath)
# This breaks headers, footers, and sidebars.
# wiki_options = settings.wiki_options.merge({ :page_file_dir => path })
wiki = Gollum::Wiki.new(settings.gollum_path, settings.wiki_options)
wiki_options = settings.wiki_options.merge({ :page_file_dir => path })
wiki = Gollum::Wiki.new(settings.gollum_path, wiki_options)
if page = wiki.page(name)
@page = page