al-quran.reflectslight.io/nanoc/rules/assets.rules
2024-05-03 21:28:26 -03:00

33 lines
520 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