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

34 lines
538 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
compile "/favicon.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
##
# JSON
passthrough "/durations/*/*.json"