1616 {% include snippets/youtube.html id=include.id video_res = include.video_res %}
1717 {%- endif %}
1818
19- {%- else -%
19+ {%- else -%}
2020{% assign video_id = include.id %}
2121{% assign video_provider = include.provider %}
2222<!-- Thanks to Minimal Mistakes -->
2323<!-- https://embedresponsively.com/ -->
24- < div class ="embed-responsive embed-responsive-16by9 my-2 chulapa-rounded-lg " itemscope itemprop ="VideoObject " itemtype ="https://schema.org/VideoObject ">
25- {%- if video_provider == "vimeo" -%}
26- < iframe loading ="lazy " title ="Video from {{ video_provider }} " class ="embed-responsive-item " src ="https://player.vimeo.com/video/{{ video_id }}?dnt=true " webkitAllowFullScreen mozallowfullscreen allowFullScreen itemprop ="embedUrl "> </ iframe >
27- {%- elsif video_provider == "google-drive" -%}
28- < iframe loading ="lazy " title ="Video from {{ video_provider }} " class ="embed-responsive-item " src ="https://drive.google.com/file/d/{{ video_id }}/preview " allowfullscreen itemprop ="embedUrl "> </ iframe >
29- {%- elsif video_provider == "bilibili" -%}
30- < iframe loading ="lazy " title ="Video from {{ video_provider }} " class ="embed-responsive-item " src ="https://player.bilibili.com/player.html?bvid={{ video_id }}&page=1&as_wide=1&high_quality=1&danmaku=0 " scrolling ="no " border ="0 " framespacing ="0 " allowfullscreen ="true " itemprop ="embedUrl "> </ iframe >
31- {%- elsif video_provider == "dailymotion" -%}
32- < iframe loading ="lazy " title ="Video from {{ video_provider }} " class ="embed-responsive-item " src ="https://www.dailymotion.com/embed/video/{{ video_id }} " webkitAllowFullScreen mozallowfullscreen allowFullScreen itemprop ="embedUrl "> </ iframe >
33-
24+ < div class ="embed-responsive embed-responsive-16by9 my-2 chulapa-rounded-lg " itemscope itemprop ="VideoObject " itemtype ="https://schema.org/VideoObject ">
25+ {%- if video_provider == "vimeo" -%}
26+ < iframe loading ="lazy " title ="Video from {{ video_provider }} " class ="embed-responsive-item " src ="https://player.vimeo.com/video/{{ video_id }}?dnt=true " webkitAllowFullScreen mozallowfullscreen allowFullScreen itemprop ="embedUrl "> </ iframe >
27+ {%- elsif video_provider == "google-drive" -%}
28+ < iframe loading ="lazy " title ="Video from {{ video_provider }} " class ="embed-responsive-item " src ="https://drive.google.com/file/d/{{ video_id }}/preview " allowfullscreen itemprop ="embedUrl "> </ iframe >
29+ {%- elsif video_provider == "bilibili" -%}
30+ < iframe loading ="lazy " title ="Video from {{ video_provider }} " class ="embed-responsive-item " src ="https://player.bilibili.com/player.html?bvid={{ video_id }}&page=1&as_wide=1&high_quality=1&danmaku=0 " scrolling ="no " border ="0 " framespacing ="0 " allowfullscreen ="true " itemprop ="embedUrl "> </ iframe >
31+ {%- elsif video_provider == "dailymotion" -%}
32+ < iframe loading ="lazy " title ="Video from {{ video_provider }} " class ="embed-responsive-item " src ="https://www.dailymotion.com/embed/video/{{ video_id }} " webkitAllowFullScreen mozallowfullscreen allowFullScreen itemprop ="embedUrl "> </ iframe >
33+ {% endif %}
34+ </ div >
3435{% endif %}
35- </ div >
36- {% endif %}
0 commit comments