Sha256: 2df51c62bc7fa2008fb69e7a92ec2b9eeb70b81b2bb426cb8c168e82ea832365

Contents?: true

Size: 302 Bytes

Versions: 28

Compression:

Stored size: 302 Bytes

Contents

module PictureTag
  module OutputFormats
    # Similar to Auto, but sets data-src (and so on) instead of src
    class DataAuto < Auto
      def self.new
        if PictureTag::Utils.count_srcsets > 1
          DataPicture.new
        else
          DataImg.new
        end
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 3 rubygems

Version Path
jekyll_picture_tag-1.6.0 lib/jekyll_picture_tag/output_formats/data_auto.rb
jekyll_picture_tag-1.5.0 lib/jekyll_picture_tag/output_formats/data_auto.rb
jekyll_picture_tag-1.4.0 lib/jekyll_picture_tag/output_formats/data_auto.rb
jekyll-4-picture-tag-1.0.1 lib/jekyll-4-picture-tag/output_formats/data_auto.rb
jekyll-picture-tag-latest-1.3.1 lib/jekyll-picture-tag-latest/output_formats/data_auto.rb
jekyll-picture-tag-latest-1.3.0 lib/jekyll-picture-tag/output_formats/data_auto.rb
jekyll-4-picture-tag-1.0.0 lib/jekyll-4-picture-tag/output_formats/data_auto.rb
jekyll_picture_tag-1.2.0 lib/jekyll_picture_tag/output_formats/data_auto.rb