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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 30c09af02fb3b49b49ffae328a7c474377badc49f4a7d10e37c5077411b93e55
4
- data.tar.gz: c66c5bf04fad8b11c7df5bef04e01a912a70a0b371dbb93cf14107bfb9de39c5
3
+ metadata.gz: 2dbea610580657b41b868901c3bce5d8f8efa2444f1ad42079b9d187692b9cda
4
+ data.tar.gz: 557b79118ff99c378f8752d92f5d78987a7374e1dfe42b65cdfcb903a3d6b86b
5
5
  SHA512:
6
- metadata.gz: d4a9316874d7dfd7da173144c7eb608697b06432a5c10f2e9fa4d79ec61474a5bfc4d90ce214316a2659ee5a80147bfeee4d39851e6c88c18b0a9def4e6bd9f1
7
- data.tar.gz: 20964fff6fcdaac00ceb536fbfd858e07984ed2f00e7eb59a5537a72a090700844de9133085e9509416de0386f18ac4620015f11be7979c6e347c44126153f30
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.css('img').first&.public_send(:[], 'src')
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.0
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-02-01 00:00:00.000000000 Z
11
+ date: 2021-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll