Skip to content

Commit

Permalink
Merge pull request #179 from amw/asset_path_fix
Browse files Browse the repository at this point in the history
Mark asset_path calls as asset uses.
  • Loading branch information
envygeeks committed Oct 9, 2015
2 parents a6a28b7 + af4e373 commit 3375539
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/jekyll/assets/tag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ def process_tag(sprockets, asset)
set_img_alt asset if @tag == "img"
out = get_path sprockets, asset

sprockets.used.add(asset)

if @tag == "asset_path"
return out

Expand All @@ -75,7 +77,6 @@ def process_tag(sprockets, asset)
]

else
sprockets.used.add(asset)
return TAGS[@tag] % [
out, @args.to_html
]
Expand Down

0 comments on commit 3375539

Please sign in to comment.