Skip to content

Commit

Permalink
Merge pull request #70 from rubyuy/fix/bust-asset-cache
Browse files Browse the repository at this point in the history
  • Loading branch information
elcuervo authored Apr 22, 2024
2 parents 44f320c + 544b118 commit 9b779f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/default_header.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h1>
COMUNIDAD RUBY EN URUGUAY
</h1>
<img src='/assets/images/logo.svg' aria-hidden="true" focuseable="false"/>
<img src="{{ "logo.svg" | image_asset | buster }}" aria-hidden="true" focuseable="false"/>
</div>
<div>
<div>
Expand Down
4 changes: 4 additions & 0 deletions _plugins/filters.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ def css_asset(filename)
def js_asset(filename)
"/assets/js/#{filename}.js"
end

def image_asset(filename)
"/assets/images/#{filename}"
end
end

Liquid::Template.register_filter(CustomFilters)

0 comments on commit 9b779f3

Please sign in to comment.