Change pages display to handle non-wiki file types with --show_all enabled
This commit is contained in:
@@ -47,7 +47,11 @@ module Precious
|
||||
folder_link
|
||||
end
|
||||
elsif page_path != ".gitkeep"
|
||||
%{<li><a href="#{@base_url}/#{page.escaped_url_path}" class="file">#{page.name}</a></li>}
|
||||
if defined? page.format
|
||||
%{<li><a href="#{@base_url}/#{page.escaped_url_path}" class="file">#{page.name}</a></li>}
|
||||
else
|
||||
%{<li><a href="#{@base_url}/#{page.escaped_url_path}#{page.name}" class="file">#{page.name}</a></li>}
|
||||
end
|
||||
end
|
||||
}.compact.join("\n")
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user