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.
- checksums.yaml +4 -4
- data/lib/jekyll-img-srcset.rb +5 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d433f113143060464965cdadd1495209e52bf351ebcc7a35b48b3a32c8a1fce
|
4
|
+
data.tar.gz: 0f3494254e4ac4e678368de404bb18224506028e40a3726c4bccfe21b9cd4af8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 762f3032e84944d1e6e4ce59ac593fec1ab82b65c2e218522735cf2c1d1636e525504d053c2aafa87743528343aa0c0b031a76d31e3b486cadec76779130cbee
|
7
|
+
data.tar.gz: bae35a8be27fe8ad7921edbe9629dcd5843016df23e27854cc6e77974c924f099d143d80f6a0bca080f78990168e0b6386438e5d9b875962b3e5cfd84ab77f85
|
data/lib/jekyll-img-srcset.rb
CHANGED
@@ -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
|
103
|
-
alt
|
104
|
-
sizes
|
105
|
-
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.
|
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-
|
11
|
+
date: 2020-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|