33 lines
520 B
Ruby
33 lines
520 B
Ruby
#!/usr/bin/env ruby
|
|
# frozen_string_literal: true
|
|
|
|
##
|
|
# Contains rules for 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 "/images/*.png" do
|
|
write(item.identifier.to_s)
|
|
end
|
|
|
|
compile "/images/og/*.png" do
|
|
write(item.identifier.to_s)
|
|
end
|
|
|
|
compile "/favicon.ico" do
|
|
write(item.identifier.to_s)
|
|
end
|