Sha256: 604a4110f4ff732c39621a57ab01224efd6172b035732b287ecec32e2cfa69a8

Contents?: true

Size: 637 Bytes

Versions: 2

Compression:

Stored size: 637 Bytes

Contents

{% if include.object contains "https://youtu.be/" %}
    {% assign media_url = include.object | replace: 'https://youtu.be/','https://youtube.com/embed/'%}
{% elsif include.object contains "https://www.youtube.com/watch?v=" %}
    {% assign media_url = include.object | replace: 'https://www.youtube.com/watch?v=','https://youtube.com/embed/'%}
{% else %}
    {% assign media_url = include.object %}
{% endif %}

<div class="embed-responsive embed-responsive-16by9">
  <iframe src='about:blank' allowFullScreen="allowFullScreen" frameBorder="0" class="lazyload embed-responsive-item" data-src="{{media_url}}"></iframe>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jumbo-jekyll-theme-5.6.9.4 _includes/core/youtube_video_embed.html
jumbo-jekyll-theme-5.6.9.3 _includes/core/youtube_video_embed.html