Skip to content
This repository has been archived by the owner on Jun 10, 2018. It is now read-only.

fix issue #12 (second part, see hike) #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/brochure/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ def find_partial(logical_path, format_extension = ".html")
end

def find_template_path(logical_path, format_extension)
template_trail.find(logical_path, logical_path + format_extension, logical_path + "/index" + format_extension)
if logical_path == '/'
template_trail.find("/index" + format_extension)
else
template_trail.find(logical_path, logical_path + format_extension, logical_path + "/index" + format_extension)
end
end

def find_partial_path(logical_path, format_extension)
Expand Down