0x1eef
d7cb6f62be
But most importantly, for src/og/0.png: * resize to 512x512 * apply a white background * similar to the format for og/1.png, og/2.png, etc
37 lines
598 B
Ruby
37 lines
598 B
Ruby
#!/usr/bin/env ruby
|
|
# frozen_string_literal: true
|
|
|
|
##
|
|
# Contains rules that are related to assets (eg 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
|
|
|
|
##
|
|
# JSON
|
|
passthrough "/json/durations/*/*.json"
|