fixes for blog

This commit is contained in:
Kyle Drake 2013-06-26 12:53:14 -07:00
parent 0fceee8db3
commit 58108ef643

6
app.rb
View file

@ -28,12 +28,12 @@ end
get '/blog' do
# expires 500, :public, :must_revalidate
return File.read File.join(DIR_ROOT, 'public', 'sites', 'blog', 'blog.html')
return File.read File.join(DIR_ROOT, 'public', 'sites', 'blog', 'index.html')
end
get '/blog/:id-:name' do
get '/blog/:article' do |article|
# expires 500, :public, :must_revalidate
return File.read File.join(DIR_ROOT, 'public', 'sites', 'blog', "blog-#{params[:id]}.html")
return File.read File.join(DIR_ROOT, 'public', 'sites', 'blog', "#{article}.html")
end
get '/new' do