Fix stale site icons.
Fix artist URLs still showing old cached site icons because the URL didn't change when the file was updated. Use `image_pack_tag` so that the filename includes the hash, so that the URL changes when the file changes.
This commit is contained in:
@@ -15,7 +15,7 @@ module IconHelper
|
||||
|
||||
def image_icon_tag(filename, class: nil, **options)
|
||||
klass = binding.local_variable_get(:class)
|
||||
tag.img(src: "/images/#{filename}", class: "icon #{klass}", **options)
|
||||
image_pack_tag("static/#{filename}", class: "icon #{klass}", **options)
|
||||
end
|
||||
|
||||
# fontawesome.com/icons/arrow-alt-up
|
||||
|
||||
Reference in New Issue
Block a user