mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
fixes for blog
This commit is contained in:
parent
0fceee8db3
commit
58108ef643
1 changed files with 3 additions and 3 deletions
6
app.rb
6
app.rb
|
@ -28,12 +28,12 @@ end
|
||||||
|
|
||||||
get '/blog' do
|
get '/blog' do
|
||||||
# expires 500, :public, :must_revalidate
|
# 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
|
end
|
||||||
|
|
||||||
get '/blog/:id-:name' do
|
get '/blog/:article' do |article|
|
||||||
# expires 500, :public, :must_revalidate
|
# 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
|
end
|
||||||
|
|
||||||
get '/new' do
|
get '/new' do
|
||||||
|
|
Loading…
Add table
Reference in a new issue