jekyll-embed-urls 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/_includes/ogp.html +1 -1
- data/lib/jekyll/embed.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: 2dbea610580657b41b868901c3bce5d8f8efa2444f1ad42079b9d187692b9cda
|
4
|
+
data.tar.gz: 557b79118ff99c378f8752d92f5d78987a7374e1dfe42b65cdfcb903a3d6b86b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 394b3b91c40d19fd7cf99b7f8391fdc41dfb437a4e5619b41123621a156c0febd91c4e60d8d434fe2dc3e8383144a0672360cf80284553de69fb5e3d416c555c
|
7
|
+
data.tar.gz: a48dcca5ba8209899d94aa2d2abdd129e253d884dcdfef41fc7b02519bf92b35d03d59220a6f598ed3572df530842ccae9ec9d74978322a5c6e2ef2871993b32
|
data/_includes/ogp.html
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
{%- if page.video -%}
|
3
3
|
<video poster="{{ page.image }}" class="img-fluid" {{ embed.controls }} src="{{ page.video }}"/>
|
4
4
|
{%- elsif page.image -%}
|
5
|
-
<img referrerpolicy="{{ embed.referrerpolicy }}" loading="{{ embed.loading }}" src="{{ page.image }}" class="img-fluid" />
|
5
|
+
<img referrerpolicy="{{ embed.referrerpolicy | join: ' ' }}" loading="{{ embed.loading }}" src="{{ page.image }}" class="img-fluid" />
|
6
6
|
{%- endif -%}
|
7
7
|
|
8
8
|
{%- if page.audio -%}
|
data/lib/jekyll/embed.rb
CHANGED
@@ -197,7 +197,7 @@ module Jekyll
|
|
197
197
|
'title' => text(title),
|
198
198
|
'description' => text(description),
|
199
199
|
'url' => url,
|
200
|
-
'image' => element
|
200
|
+
'image' => element&.css('img').first&.public_send(:[], 'src')
|
201
201
|
}
|
202
202
|
|
203
203
|
fallback_template.render! payload, context
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-embed-urls
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- f
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|