Sha256: 84676e625bf1b7e3fe796e51550545363d8e9b2c2f778c95bdbb4612c1bd4eec

Contents?: true

Size: 323 Bytes

Versions: 20

Compression:

Stored size: 323 Bytes

Contents

module PictureTag
  module OutputFormats
    # Returns only a srcset attribute, for more custom or complicated markup.
    class NakedSrcset < Basic
      def to_s
        image = PictureTag.source_images.first
        format = PictureTag.formats.first

        build_srcset(image, format).to_s
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
jekyll_picture_tag-2.1.2 lib/jekyll_picture_tag/output_formats/naked_srcset.rb
jekyll_picture_tag-2.1.1 lib/jekyll_picture_tag/output_formats/naked_srcset.rb
jekyll_picture_tag-2.1.0 lib/jekyll_picture_tag/output_formats/naked_srcset.rb
jekyll_picture_tag-2.0.4 lib/jekyll_picture_tag/output_formats/naked_srcset.rb
jekyll_picture_tag-2.0.3 lib/jekyll_picture_tag/output_formats/naked_srcset.rb
jekyll_picture_tag-2.0.2 lib/jekyll_picture_tag/output_formats/naked_srcset.rb
jekyll_picture_tag-2.0.1 lib/jekyll_picture_tag/output_formats/naked_srcset.rb
jekyll_picture_tag-2.0.0 lib/jekyll_picture_tag/output_formats/naked_srcset.rb
jekyll_picture_tag-2.0.0pre1 lib/jekyll_picture_tag/output_formats/naked_srcset.rb
jekyll_picture_tag-1.14.0 lib/jekyll_picture_tag/output_formats/naked_srcset.rb
jekyll_picture_tag-1.13.0 lib/jekyll_picture_tag/output_formats/naked_srcset.rb
jekyll_picture_tag-1.12.0 lib/jekyll_picture_tag/output_formats/naked_srcset.rb
jekyll_picture_tag-1.11.0 lib/jekyll_picture_tag/output_formats/naked_srcset.rb
jekyll_picture_tag-1.10.2 lib/jekyll_picture_tag/output_formats/naked_srcset.rb
jekyll_picture_tag-1.10.1 lib/jekyll_picture_tag/output_formats/naked_srcset.rb
jekyll_picture_tag-1.10.0 lib/jekyll_picture_tag/output_formats/naked_srcset.rb
jekyll_picture_tag-1.9.0 lib/jekyll_picture_tag/output_formats/naked_srcset.rb
jekyll_picture_tag-1.8.0 lib/jekyll_picture_tag/output_formats/naked_srcset.rb
jekyll_picture_tag-1.7.1 lib/jekyll_picture_tag/output_formats/naked_srcset.rb
jekyll_picture_tag-1.7.0 lib/jekyll_picture_tag/output_formats/naked_srcset.rb