al-quran.reflectslight.io/rules/pages/surah/random.rules

17 lines
388 B
Text
Raw Normal View History

2023-03-10 11:39:03 +01:00
#!/usr/bin/env ruby
2023-03-10 13:10:52 +01:00
#
2023-03-10 12:16:41 +01:00
# Rules for a redirect from /<locale>/random/ to a
# random surah (eg /en/random/ -> /en/al-kahf/)
2023-03-10 11:39:03 +01:00
locales.each do |locale|
compile "/html/pages/surah/random.html.erb", rep: "random/#{locale}" do
filter(:erb)
write("/#{locale}/random/index.html")
end
end
compile "/js/pages/surah/random.ts" do
filter :webpack
write "/js/pages/surah/random.js"
end