Skip to content

Commit

Permalink
Remove README.txt render
Browse files Browse the repository at this point in the history
  • Loading branch information
nesquena committed Mar 27, 2013
1 parent 304f853 commit 5679549
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gitdocs/server.rb
Expand Up @@ -101,7 +101,7 @@ def start(port = 8888)
elsif File.directory?(expanded_path) # list directory
contents = gd.dir_files(expanded_path)
rendered_readme = nil
if readme = Dir[File.expand_path("README.{md,txt}", expanded_path)].first
if readme = Dir[File.expand_path("README.{md}", expanded_path)].first
rendered_readme = '<h3>' + File.basename(readme) + '</h3><div class="tilt">' + render(readme) + '</div>'
end
render! "dir", :layout => 'app', :locals => locals.merge(:contents => contents, :rendered_readme => rendered_readme)
Expand Down

0 comments on commit 5679549

Please sign in to comment.