al-quran.reflectslight.io/rules/pages/surah/random.rules
2023-03-10 07:39:03 -03:00

16 lines
321 B
Ruby

#!/usr/bin/env ruby
##
# Redirects to a random surah
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