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