From 58108ef6437f65e3a624866e620e45f48c7dc71a Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Wed, 26 Jun 2013 12:53:14 -0700 Subject: [PATCH] fixes for blog --- app.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app.rb b/app.rb index 591bd3ab..8c89430d 100644 --- a/app.rb +++ b/app.rb @@ -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