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

38 lines
605 B
Text
Raw Normal View History

#!/usr/bin/env ruby
2023-03-11 18:31:44 +01:00
# frozen_string_literal: true
##
2023-03-11 14:45:12 +01:00
# Contains rules that are related to assets (eg images, fonts, etc)
##
# Fonts
compile "/fonts/*" do
write(item.identifier.to_s)
2023-06-30 00:49:42 +02:00
filter :gzip
write("#{item.identifier}.gz")
end
##
# 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/opengraph/*.png" do
write(item.identifier.to_s)
end
2024-03-10 12:54:42 +01:00
compile "/favicon.ico" do
write(item.identifier.to_s)
end
##
# JSON
2024-04-30 05:11:00 +02:00
passthrough "/json/durations/*/*.json"