al-quran.reflectslight.io/rules/assets.rules
0x1eef a22be0413e Add /favicon.png
Enhances SEO and provides a familiar icon when used with bookmarks.
2023-03-11 18:03:38 -03:00

25 lines
435 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_binary
write("#{item.identifier}.gz")
end
##
# Images
compile "/images/*.svg" do
write(item.identifier.to_s)
filter :gzip_binary
write("#{item.identifier}.gz")
end
compile "/favicon.png" do
write(item.identifier.to_s)
end