diff --git a/_config.yml b/_config.yml
index 463c2254..cfc4c9b2 100644
--- a/_config.yml
+++ b/_config.yml
@@ -53,7 +53,7 @@ keep_files: ['media', 'gen']
picture:
source: "_media"
output: "media/gen"
- markup: "picturefill"
+ markup: "picture"
presets:
default:
ppi: [1, 2]
diff --git a/_src/_plugins/picture_tag.rb b/_src/_plugins/picture_tag.rb
index 6f8e0a39..daf5bf05 100755
--- a/_src/_plugins/picture_tag.rb
+++ b/_src/_plugins/picture_tag.rb
@@ -142,53 +142,34 @@ module Jekyll
# Generate resized images
instance.each { |key, source|
- instance[key][:generated_src] = generate_image(source, site.source, site.dest, settings['source'], settings['output'])
+ instance[key][:generated_src] = generate_image(source, site.source, site.dest, settings['source'], settings['output'], site.config["baseurl"])
}
# Construct and return tag
- if settings['markup'] == 'picturefill'
+ if settings['markup'] == 'picture'
source_tags = ''
- # Picturefill uses reverse source order
- # Reference: https://github.com/scottjehl/picturefill/issues/79
- source_keys.reverse.each { |source|
- media = " data-media=\"#{instance[source]['media']}\"" unless source == 'source_default'
- source_tags += "#{markdown_escape * 4}\n"
+ source_keys.each { |source|
+ media = " media=\"#{instance[source]['media']}\"" unless source == 'source_default'
+ source_tags += "#{markdown_escape * 4}