Method: Jekyll::Assets::HTML::IMG#path
- Defined in:
- lib/jekyll/assets/plugins/html/img.rb
#path(dimensions:, type: nil) ⇒ Object
–
38 39 40 41 42 43 44 45 46 47 |
# File 'lib/jekyll/assets/plugins/html/img.rb', line 38 def path(dimensions:, type: nil) args_ = "#{args[:argv1]} @path" args_ += " magick:resize=#{dimensions}" args_ += " magick:format=#{type}" if type args_ += " @optim" if args.key?(:optim) pctx = Liquid::ParseContext.new tag = Tag.new("asset", args_, pctx) tag.render(ctx) end |