2023-03-10 09:49:48 +01:00
|
|
|
#!/usr/bin/env ruby
|
2023-03-11 18:31:44 +01:00
|
|
|
# frozen_string_literal: true
|
2023-03-10 14:51:34 +01:00
|
|
|
|
|
|
|
##
|
2023-03-10 14:41:19 +01:00
|
|
|
# Rules for a redirect from the root path to the surah index for a given locale
|
|
|
|
# (eg / -> /en/)
|
2023-03-10 09:49:48 +01:00
|
|
|
|
2023-10-08 10:02:01 +02:00
|
|
|
compile "/html/redirect.html.erb" do
|
2023-10-28 12:02:08 +02:00
|
|
|
filter(:tidy)
|
2023-03-10 09:49:48 +01:00
|
|
|
filter(:erb)
|
|
|
|
write("/index.html")
|
|
|
|
end
|
|
|
|
|
2023-10-08 10:02:01 +02:00
|
|
|
compile "/js/pages/Redirect.ts" do
|
2023-03-10 09:49:48 +01:00
|
|
|
filter(:webpack)
|
2023-10-08 10:02:01 +02:00
|
|
|
write("/js/pages/redirect.js")
|
2023-03-10 09:49:48 +01:00
|
|
|
end
|