al-quran.reflectslight.io/nanoc/rules/redirect.rules
0x1eef 48eda16678 Move /src/js/pages/* to /src/js/
And move `/src/css/pages/*` to `/src/css/`.
2023-10-29 20:24:26 -03:00

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