Redirects
This commit is contained in:
parent
404c404fdb
commit
cf8ee88abd
@ -18,7 +18,7 @@ end
|
|||||||
|
|
||||||
compile '/' do
|
compile '/' do
|
||||||
filter :haml, :ugly => true
|
filter :haml, :ugly => true
|
||||||
layout 'main'
|
layout item[:redirect] ? "redirect" : (item[:layout] ? item[:layout] : "main")
|
||||||
end
|
end
|
||||||
|
|
||||||
compile '/search-data/' do
|
compile '/search-data/' do
|
||||||
@ -28,7 +28,7 @@ end
|
|||||||
compile '/examples/*/' do
|
compile '/examples/*/' do
|
||||||
filter :haml, :ugly => true
|
filter :haml, :ugly => true
|
||||||
filter :highlight
|
filter :highlight
|
||||||
layout 'example'
|
layout item[:redirect] ? "redirect" : (item[:layout] ? item[:layout] : "example")
|
||||||
end
|
end
|
||||||
|
|
||||||
sass_options = Compass.sass_engine_options
|
sass_options = Compass.sass_engine_options
|
||||||
@ -44,7 +44,7 @@ end
|
|||||||
compile '/reference/*/' do
|
compile '/reference/*/' do
|
||||||
filter :haml, :ugly => true
|
filter :haml, :ugly => true
|
||||||
filter :highlight
|
filter :highlight
|
||||||
layout item[:layout] || 'main'
|
layout item[:redirect] ? "redirect" : (item[:layout] ? item[:layout] : "main")
|
||||||
end
|
end
|
||||||
|
|
||||||
compile '*' do
|
compile '*' do
|
||||||
@ -53,7 +53,7 @@ compile '*' do
|
|||||||
elsif item[:extension] == "haml"
|
elsif item[:extension] == "haml"
|
||||||
filter :haml, :ugly => true
|
filter :haml, :ugly => true
|
||||||
end
|
end
|
||||||
layout item[:layout] || 'main'
|
layout item[:redirect] ? "redirect" : (item[:layout] ? item[:layout] : "main")
|
||||||
end
|
end
|
||||||
|
|
||||||
route '/search-data/' do
|
route '/search-data/' do
|
||||||
|
4
doc-src/content/reference.haml
Normal file
4
doc-src/content/reference.haml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
title: Compass Documentation
|
||||||
|
redirect: /reference/compass/
|
||||||
|
---
|
5
doc-src/layouts/redirect.haml
Normal file
5
doc-src/layouts/redirect.haml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
!!!5
|
||||||
|
- # This template redirects.
|
||||||
|
%html{:dir => "ltr", :lang => "en"}
|
||||||
|
%head
|
||||||
|
%meta{:"http-equiv" => "refresh", :content => "0;#{@item[:redirect]}"}/
|
Loading…
Reference in New Issue
Block a user