jekyll-image-data 0.3.0 → 0.3.1
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 +2 -2
- data/lib/jekyll-image-data/crawler.rb +1 -1
- data/lib/jekyll-image-data/version.rb +1 -1
- 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: 4e9bd3c1eb8d55d63f7062f8947028aeba13f99c7bbad41b52007ab337e00ee1
|
4
|
+
data.tar.gz: 2e3b88cb6206e6c1b73c7ab985d519001e5f8a85f167d8f79036941f50942799
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a17612a31bb44dc9ca53e112bde714a800f1dc619b2efb09ea2c9d085383248630a4222406a19bbe7d69279b9a64f4ba903e073bdf61fb484160fadddfa0b41
|
7
|
+
data.tar.gz: e8d3da01517a82ba096bce3c48d021ef2240f5094d7dbf61f910e1dfbb4458734a2938cbdf14a59895fe854a01099d08ccbe31950bb889146d19b32b1ba4c982
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
[](https://travis-ci.org/rukbotto/jekyll-image-data)
|
4
4
|
|
5
|
-
Image data for Jekyll posts and pages. Crawls
|
5
|
+
Image data for Jekyll posts and pages. Crawls Markdown content from posts and pages in search of image data ("src" and "alt" attributes) and makes it available as a post/page metadata attribute.
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
@@ -45,7 +45,7 @@ or
|
|
45
45
|
{% include image.liquid src="http://placehold.it/800x600" alt="Image" %}
|
46
46
|
```
|
47
47
|
|
48
|
-
Note that the included file must be named `image.liquid` or `image.html` and must accept two parameters: `src` and `alt`.
|
48
|
+
Note that the included file must be named `image.liquid` or `image.html` and must accept at least two parameters: `src` and `alt`.
|
49
49
|
|
50
50
|
This plugin gets executed in the `:posts, :pre_render` and `:pages, :post_init` hooks. After execution, `post.data["images"]` or `page.data["images"]` will hold `alt` and `src` data for all images inside post/page:
|
51
51
|
|
@@ -2,7 +2,7 @@ module JekyllImageData
|
|
2
2
|
class Crawler
|
3
3
|
def initialize
|
4
4
|
src = %r{(?:https|http|mailto)?(?:\:/)?/\S+}
|
5
|
-
alt = %r{[[[:alnum:]][[:space:]]-]+}
|
5
|
+
alt = %r{[[[:alnum:]][[:space:]]`~¡!@\#\$%^&*\(\)+=\[\]\{\}\\\|;\:',\.¿\?/_-]+}
|
6
6
|
|
7
7
|
md_image = %r{!\[(.*)\]\((.*)\)}
|
8
8
|
md_image_ref = %r{!\[(.*)\]\[(.*)\]}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-image-data
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jose Miguel Venegas Mendoza
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|