Remove the old redirect system.
This commit is contained in:
parent
7c323feb31
commit
ff6c3a078a
@ -18,7 +18,7 @@ end
|
||||
|
||||
compile '/' do
|
||||
filter :haml, :ugly => true
|
||||
layout item[:redirect] ? "redirect" : (item[:layout] ? item[:layout] : "main")
|
||||
layout item[:layout] ? item[:layout] : "main"
|
||||
end
|
||||
|
||||
compile '/search-data/' do
|
||||
@ -28,7 +28,7 @@ end
|
||||
compile '/examples/*/' do
|
||||
filter :haml, :ugly => true
|
||||
filter :highlight
|
||||
layout item[:redirect] ? "redirect" : (item[:layout] ? item[:layout] : "example")
|
||||
layout item[:layout] ? item[:layout] : "example"
|
||||
end
|
||||
|
||||
sass_options = Compass.sass_engine_options
|
||||
@ -44,7 +44,7 @@ end
|
||||
compile '/reference/*/' do
|
||||
filter :haml, :ugly => true
|
||||
filter :highlight
|
||||
layout item[:redirect] ? "redirect" : (item[:layout] ? item[:layout] : "main")
|
||||
layout item[:layout] ? item[:layout] : "main"
|
||||
end
|
||||
|
||||
compile '*' do
|
||||
@ -53,7 +53,7 @@ compile '*' do
|
||||
elsif item[:extension] == "haml"
|
||||
filter :haml, :ugly => true
|
||||
end
|
||||
layout item[:redirect] ? "redirect" : (item[:layout] ? item[:layout] : "main")
|
||||
layout item[:layout] ? item[:layout] : "main"
|
||||
end
|
||||
|
||||
route '/search-data/' do
|
||||
|
@ -1,4 +1,5 @@
|
||||
RedirectMatch 301 /docs/ /reference/compass/
|
||||
RedirectMatch 301 /docs/tutorials/(.*) /help/tutorials/$1
|
||||
RedirectMatch 301 /docs/(.*) /$1
|
||||
RedirectMatch 301 /reference/ /reference/compass/
|
||||
|
||||
|
@ -1,4 +0,0 @@
|
||||
---
|
||||
title: Compass Documentation
|
||||
redirect: /reference/compass/
|
||||
---
|
@ -1,5 +0,0 @@
|
||||
!!!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