jekyll-thumbor 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.bumpversion.cfg +2 -1
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/appveyor.yml +1 -1
- data/lib/jekyll/thumbor_tag.rb +10 -0
- data/lib/jekyll/thumbor_tag/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba5bd159fb7f87db7c8fb1862fca556aa0e2d959
|
4
|
+
data.tar.gz: 6011292dc7b4a3ad917fc3116ce17a4890aabd41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae912eb68157fcb7bd34eb5e995144a0e3880866ffcbdcb07922502bee0842ed1a550413a016421d9faa8bffaa621e33939fe3fbef22d6464c1b4d7699f1fb68
|
7
|
+
data.tar.gz: f491abbf96f8271fc93dc49215dab35510fc4740814469fe3ac7c6b9ecf3f5e0f723803266a56c169ae854903af94c6e74326981c19aa2e27fbb02eb607ba80a
|
data/.bumpversion.cfg
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
[bumpversion]
|
2
|
-
current_version = 0.4.
|
2
|
+
current_version = 0.4.1
|
3
3
|
commit = True
|
4
4
|
tag = False
|
5
5
|
message = :bookmark: {current_version} → {new_version}
|
@@ -9,3 +9,4 @@ search = v{current_version}
|
|
9
9
|
replace = v{new_version}
|
10
10
|
|
11
11
|
[bumpversion:file:lib/jekyll/thumbor_tag/version.rb]
|
12
|
+
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -42,7 +42,7 @@ thumbor:
|
|
42
42
|
Then in the liquid template you can use the template tag:
|
43
43
|
|
44
44
|
```html
|
45
|
-
<img src="{%
|
45
|
+
<img src="{% thumbor https://example.org/picture.jpg, width: 500, height: 500 %}"
|
46
46
|
```
|
47
47
|
|
48
48
|
## Development
|
data/appveyor.yml
CHANGED
data/lib/jekyll/thumbor_tag.rb
CHANGED
@@ -19,8 +19,14 @@ module Jekyll
|
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
22
|
+
<<<<<<< HEAD
|
22
23
|
def render(context)
|
23
24
|
@config = context.registers[:site].config['thumbor']
|
25
|
+
=======
|
26
|
+
def render(context)
|
27
|
+
@url = Liquid::Template.parse(@url).render context
|
28
|
+
@config = context.registers[:site].config['thumbor']
|
29
|
+
>>>>>>> ad314eb... added functionality to interpret jekyll variables
|
24
30
|
|
25
31
|
image = Thumbor::Cascade.new(@config['key'], @url)
|
26
32
|
image_url = image.width(@parameters['width']).height(@parameters['height']).generate
|
@@ -31,4 +37,8 @@ module Jekyll
|
|
31
37
|
end
|
32
38
|
end
|
33
39
|
|
40
|
+
<<<<<<< HEAD
|
34
41
|
Liquid::Template.register_tag('thumbor', Jekyll::ThumborTag::ThumborTag)
|
42
|
+
=======
|
43
|
+
Liquid::Template.register_tag('thumbor_tag', Jekyll::ThumborTag)
|
44
|
+
>>>>>>> ad314eb... added functionality to interpret jekyll variables
|