al-quran.reflectslight.io/nanoc/rules/redirect.rules
2024-05-02 11:56:23 -03:00

15 lines
367 B
Ruby

#!/usr/bin/env ruby
# frozen_string_literal: true
# contains 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/main/redirect.ts" do
filter(:webpack, depend_on: ["/js/lib/"])
write("/js/main/redirect.js")
end