al-quran.reflectslight.io/nanoc/rules/assets.rules

34 lines
520 B
Text
Raw Normal View History

#!/usr/bin/env ruby
2023-03-11 18:31:44 +01:00
# frozen_string_literal: true
2024-05-04 02:28:26 +02:00
##
# Contains rules for images, fonts, etc
##
2024-05-02 16:29:46 +02:00
# fonts
compile "/fonts/*" do
write(item.identifier.to_s)
2023-06-30 00:49:42 +02:00
filter :gzip
write("#{item.identifier}.gz")
end
##
2024-05-02 16:29:46 +02:00
# images
compile "/images/*.svg" do
write(item.identifier.to_s)
2023-06-30 00:49:42 +02:00
filter :gzip
write("#{item.identifier}.gz")
end
2024-03-15 18:40:37 +01:00
compile "/images/*.png" do
write(item.identifier.to_s)
end
2023-10-05 00:49:26 +02:00
compile "/images/og/*.png" do
2023-10-05 00:49:26 +02:00
write(item.identifier.to_s)
end
2024-03-10 12:54:42 +01:00
compile "/favicon.ico" do
write(item.identifier.to_s)
end