al-quran.reflectslight.io/nanoc/rules/assets.rules
2023-10-05 02:36:47 -03:00

29 lines
493 B
Ruby

#!/usr/bin/env ruby
# frozen_string_literal: true
##
# Contains rules that are related to assets (eg 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 "/favicon.png" do
write(item.identifier.to_s)
end
compile "/images/opengraph/*.png" do
write(item.identifier.to_s)
end