al-quran.reflectslight.io/rules/pages/surah/redirect.rules
2023-03-11 14:31:44 -03:00

16 lines
347 B
Ruby

#!/usr/bin/env ruby
# frozen_string_literal: true
##
# Rules for a redirect from the root path to the surah index for a given locale
# (eg / -> /en/)
compile "/html/pages/surah/redirect.html.erb" do
filter(:erb)
write("/index.html")
end
compile "/js/pages/surah/redirect.ts" do
filter(:webpack)
write("/js/pages/surah/redirect.js")
end