Skip to content

Commit

Permalink
Mark asset_path calls as asset uses.
Browse files Browse the repository at this point in the history
This copies them into destination _site directory.
  • Loading branch information
amw committed Oct 9, 2015
1 parent a6a28b7 commit af4e373
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 af4e373

Please sign in to comment.