jumbo-jekyll-theme 5.5.3 → 5.5.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ffe28afcc0aeee5769bd3954f0d1c29aacb972915e150af5344bf1884859a727
4
- data.tar.gz: e54ebee6c074cecaec8d74432ccf0faa16c96a6a968b22a8de9de2de1e12dac6
3
+ metadata.gz: fb29a80a6a26f9da39f3c479b42a5fa1b091bdd07ef56e9fe38289f0b16fc4dd
4
+ data.tar.gz: 3f71037fb7211db756f2a360d35bfeb197b69ff9d6b455c7f924df307d066459
5
5
  SHA512:
6
- metadata.gz: ac00bf6a57b8a9010fc9fe472c78dc49ef23128b1c7176148a8fa3524be372fcd6659d7e0046c7ad45f08ba671f7ba0b139c93bfaa6f6b7607bc2d5024e8b0ca
7
- data.tar.gz: 14b092ad21c2fcfc4dc7d3c5dee466a93f4f04975d4a0a25b7803fef714cce4540a52704af8a2602424483acd8872c0346991c17b0b6952c23f62306b266b780
6
+ metadata.gz: 50ff5bf33b39418e0093ad2cea0191f0a30a24a95d9610e29b5d0d5ee803097391fc25357e58c77c6f4ac8f176d592eddd2d3a88d62a7b30cef22a1cf46b1cf3
7
+ data.tar.gz: bb9ffca3883bcc7c439bc49f30b74c52dd815e8519cb3c14491feae87cdce92cc4ab0bdd00edb4b46540cc42356348c921cce861967de7ce559b1471aa105772
@@ -15,6 +15,8 @@
15
15
  {% endresponsive_image_block %}
16
16
  {% elsif include.object.side_content.type == "slider" %}
17
17
  {% include core/slider.html object=include.object.side_content.content %}
18
+ {% elsif include.object.side_content.type == "youtube_video" %}
19
+ {% include core/youtube_video_embed.html object=include.object.side_content.content %}
18
20
  {% else %}
19
21
  <h2>TODO</h2>
20
22
  {% endif %}
@@ -38,4 +40,4 @@
38
40
  {% endif %}
39
41
  </div>
40
42
  </div>
41
- </div>
43
+ </div>
@@ -0,0 +1,11 @@
1
+ {% if include.object.url contains "https://youtu.be/" %}
2
+ {% assign media_url = include.object.url | replace: 'https://youtu.be/','https://youtube.com/embed/'%}
3
+ {% elsif include.object.url contains "https://www.youtube.com/watch?v=" %}
4
+ {% assign media_url = include.object.url | replace: 'https://www.youtube.com/watch?v=','https://youtube.com/embed/'%}
5
+ {% else %}
6
+ {% assign media_url = include.object.url %}
7
+ {% endif %}
8
+
9
+ <div class="embed-responsive embed-responsive-16by9">
10
+ <iframe src='about:blank' allowFullScreen="allowFullScreen" frameBorder="0" class="lazyload embed-responsive-item" data-src="{{media_url}}"></iframe>
11
+ </div>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jumbo-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.5.3
4
+ version: 5.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Kirkby
@@ -386,6 +386,7 @@ files:
386
386
  - _includes/core/slider_row.html
387
387
  - _includes/core/text.html
388
388
  - _includes/core/title.html
389
+ - _includes/core/youtube_video_embed.html
389
390
  - _includes/css.html
390
391
  - _includes/custom_include.html
391
392
  - _includes/custom_include_row.html