commit
ac3aee6e4b
|
@ -68,6 +68,9 @@ module Middleman
|
||||||
# (e.g., if the resource is named 'gallery.html' and a path exists named 'gallery/', this would return true)
|
# (e.g., if the resource is named 'gallery.html' and a path exists named 'gallery/', this would return true)
|
||||||
# @return [Boolean]
|
# @return [Boolean]
|
||||||
def eponymous_directory?
|
def eponymous_directory?
|
||||||
|
if !path.end_with?("/#{app.index_file}") && destination_path.end_with?("/#{app.index_file}")
|
||||||
|
return true
|
||||||
|
end
|
||||||
full_path = File.join(app.source_dir, eponymous_directory_path)
|
full_path = File.join(app.source_dir, eponymous_directory_path)
|
||||||
!!(File.exists?(full_path) && File.directory?(full_path))
|
!!(File.exists?(full_path) && File.directory?(full_path))
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue