jekyll-cloudinary_fetcher 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +5 -4
- data/lib/jekyll/cloudinary_fetcher.rb +3 -1
- data/lib/jekyll/cloudinary_fetcher/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ba6e770f22ae28b6787c7b1b822270d4f96a9a5
|
4
|
+
data.tar.gz: 134dbacbb7e72526027de6ad29f081fc7123d916
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c92ddd26dd67720acdff173ba049f2167f1a554f46368293615cdaf6997fdb5a5068b76ec3a177eec660432a196f79a3ba85bb5aabdd05e1ec43d05f585b7b37
|
7
|
+
data.tar.gz: 5619814fe1e5283f33bfabcec61024abb114a5b7cca8798b1bf6d0eef995320a5b9938b5a2f0ffcec41be7de3ec322328141277b40f48bce07bef56f1013de73
|
data/README.md
CHANGED
@@ -23,10 +23,11 @@ And then execute:
|
|
23
23
|
|
24
24
|
Add the following to your Jekyll config:
|
25
25
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
26
|
+
| Name | Default | Description |
|
27
|
+
| - | - | - |
|
28
|
+
| `cloudinary_cloud_name` | | "Cloud name" assigned in https://cloudinary.com/ |
|
29
|
+
| `cloudinary_fetch_url` | `site.url` | Publicly accessible URL |
|
30
|
+
| `cloudinary_fetch_skip_transform` | `[]` | Global list of file formats to which [Cloudinary transforms](https://cloudinary.com/documentation/image_transformation_reference) should never be applied |
|
30
31
|
|
31
32
|
Now you can use the `cloudinary_fetch` tag in any of your Liquid templates to
|
32
33
|
make use of Cloudinary's Fetch feature.
|
@@ -37,8 +37,10 @@ module Jekyll
|
|
37
37
|
end
|
38
38
|
|
39
39
|
asset_url = URI.join(site_url, context[@filepath])
|
40
|
+
asset_ext = File.extname(context[@filepath])
|
41
|
+
skip_transform = site.config["cloudinary_fetch_skip_transform"] || []
|
40
42
|
|
41
|
-
if @transforms.empty?
|
43
|
+
if @transforms.empty? or skip_transform.include? asset_ext
|
42
44
|
return "#{cloudinary_url}/#{asset_url}"
|
43
45
|
end
|
44
46
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-cloudinary_fetcher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bedrich
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|