al-quran.reflectslight.io/nanoc/rules/redirect.rules
2024-06-14 23:31:39 -03:00

19 lines
458 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/main/redirect.html.erb" do
filter(:erb, locals: {locales:})
filter(:tidy)
write("/index.html")
end
compile "/js/main/redirect.ts" do
filter(:webpack, exe: tidy, depend_on: ["/js/lib/"])
write("/js/main/redirect.js")
filter(:gzip)
write("/js/main/redirect.js.gz")
end