lib/jekyll/assets/plugins/html/defaults/component.rb in jekyll-assets-3.0.3 vs lib/jekyll/assets/plugins/html/defaults/component.rb in jekyll-assets-3.0.4
- old
+ new
@@ -8,9 +8,10 @@
module Assets
class Default
class Component < Default
content_types "text/html"
+ # --
def set_href
dpath = @asset.digest_path
return @args[:href] = @asset.url if @asset.is_a?(Url)
return @args[:href] = @env.prefix_url(dpath) unless @args[:inline]
@args[:href] = @asset.data_uri