al-quran.reflectslight.io/nanoc/rules/assets.rules
2024-05-02 11:29:46 -03:00

31 lines
516 B
Ruby

#!/usr/bin/env ruby
# frozen_string_literal: true
# Contains rules for images, fonts, etc
##
# fonts
compile "/fonts/*" do
write(item.identifier.to_s)
filter :gzip
write("#{item.identifier}.gz")
end
##
# images
compile "/images/*.svg" do
write(item.identifier.to_s)
filter :gzip
write("#{item.identifier}.gz")
end
compile "/images/*.png" do
write(item.identifier.to_s)
end
compile "/images/og/*.png" do
write(item.identifier.to_s)
end
compile "/favicon.ico" do
write(item.identifier.to_s)
end