al-quran.reflectslight.io/nanoc/rules/redirect.rules
0x1eef 1d641e7c71 Re-organize project files
Attempt to simplify the layout of project files.
2023-10-08 06:31:29 -03:00

16 lines
323 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/redirect.html.erb" do
filter(:erb)
write("/index.html")
end
compile "/js/pages/Redirect.ts" do
filter(:webpack)
write("/js/pages/redirect.js")
end