forked from TonTon-UFPA-Comput/site
Chapa Sigmóide. Redirect to home page
This commit is contained in:
parent
edc7328991
commit
ae5d498d6a
1 changed files with 4 additions and 0 deletions
4
app.rb
4
app.rb
|
|
@ -20,6 +20,10 @@ class TonTonWeb::App < Sinatra::Base
|
||||||
markdown request.path_info.to_sym, layout_engine: :erb, layout: true
|
markdown request.path_info.to_sym, layout_engine: :erb, layout: true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
get '/chapa-sigmoide' do
|
||||||
|
redirect "/chapa-sigmoide/readme.markdown"
|
||||||
|
end
|
||||||
|
|
||||||
get '/chapa-sigmoide/:name' do
|
get '/chapa-sigmoide/:name' do
|
||||||
if request.path_info.end_with? '.markdown'
|
if request.path_info.end_with? '.markdown'
|
||||||
markdown request.path_info.sub('.markdown', '').to_sym, layout_engine: :erb, layout: :chapa_sigmoide
|
markdown request.path_info.sub('.markdown', '').to_sym, layout_engine: :erb, layout: :chapa_sigmoide
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue