Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

permalinks more working on heroku

  • Loading branch information...
commit 5db7c96fa2591adf79cb6883d60eaee50ca75977 1 parent 9ba8a03
Philip (flip) Kromer authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 devblog.rb
View
4 devblog.rb
@@ -14,5 +14,7 @@
end
get %r{^([^\.]+)/?$} do
- File.read('_site' + params[:captures].first + '/index.html')
+ slugged_filename = '_site' + params[:captures].first + '/index.html'
+ pass unless File.exists?(slugged_filename)
+ File.read(slugged_filename)
end
Please sign in to comment.
Something went wrong with that request. Please try again.