jekyll-img-srcset 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jekyll-img-srcset.rb +5 -4
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8cba8bc40ca676dbd4b2889516261954dd9ccefcc6a8d020faa49df285e4004b
4
- data.tar.gz: e234e70640cba4b30dc472d1a78954066be34b2630277d1627668f88b46a1bf8
3
+ metadata.gz: 8d433f113143060464965cdadd1495209e52bf351ebcc7a35b48b3a32c8a1fce
4
+ data.tar.gz: 0f3494254e4ac4e678368de404bb18224506028e40a3726c4bccfe21b9cd4af8
5
5
  SHA512:
6
- metadata.gz: 4520a7fbef0148dcebb03a6943fa53114aaae6217dc522aec7e41e43f397be3e230c5738e4ab8bb09ae61e6ed7b3537ce350f3d12ef838a6507cf790f1afd068
7
- data.tar.gz: dea03820cebd35ed1b0147ecb2e90e94562dfb188c712c56f60082904303d0b9fe712858c489d1bc4c8b5a9f5d98807fe7de33212048dc8853807f05b1e361df
6
+ metadata.gz: 762f3032e84944d1e6e4ce59ac593fec1ab82b65c2e218522735cf2c1d1636e525504d053c2aafa87743528343aa0c0b031a76d31e3b486cadec76779130cbee
7
+ data.tar.gz: bae35a8be27fe8ad7921edbe9629dcd5843016df23e27854cc6e77974c924f099d143d80f6a0bca080f78990168e0b6386438e5d9b875962b3e5cfd84ab77f85
@@ -99,10 +99,11 @@ def format_image(ident, sizes, original_width, url, caption, title, baseurl, bas
99
99
  if not caption.nil? and caption != ""
100
100
  content += "<figure>
101
101
  <img
102
- src = \"#{baseurl}/#{base_image_path}/#{sizes[0]}/#{url}\"
103
- alt = \"#{title}\"
104
- sizes = \"#{srcset_sizes}\"
105
- srcset = \"#{srcset}\"
102
+ src = \"#{baseurl}/#{base_image_path}/#{sizes[0]}/#{url}\"
103
+ alt = \"#{title}\"
104
+ sizes = \"#{srcset_sizes}\"
105
+ srcset= \"#{srcset}\"
106
+ width = \"100%\"
106
107
  />
107
108
  <figcaption>#{caption}</figcaption>
108
109
  </figure>"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-img-srcset
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan-Philipp Stauffert
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-23 00:00:00.000000000 Z
11
+ date: 2020-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll