Skip to content

Commit

Permalink
Added google drive embedding to media page
Browse files Browse the repository at this point in the history
  • Loading branch information
gnastacast committed Aug 18, 2023
1 parent fc52617 commit 45af654
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
20 changes: 14 additions & 6 deletions _layouts/media.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,21 @@

<div class="columns is-multiline">
{% for video in page.videos %}
{% if video.type=="youtube" %}
<div class="column is-4">
<figure class="image is-16by9">
<div class="column is-4">
<figure class="image is-16by9">
{% if video.type=="youtube" %}
<iframe class="has-ratio" src="http://www.youtube.com/embed/{{ video.id }}" frameborder="0" allowfullscreen></iframe>
</figure>
</div>
{% endif %}
{% endif %}
{% if video.type=="google_drive" %}
<iframe class="has-ratio"
src="https://drive.google.com/file/d/{{ video.id }}"
frameborder="0"
allowfullscreen="true">
</iframe>
{% endif %}
</figure>
</div>

{% endfor %}
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion media.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ images:
videos:
- name: "Snake robot overview"
type: google_drive
id: 0B2LF_3WEQeImX0oxalpjTnBVTEE
id: 0B2LF_3WEQeImX0oxalpjTnBVTEE/preview?resourceKey=0-CgPlZ4jTVf1vthLvboofTA
- name: "Perching"
type: youtube
id: te4M-b69fVs
Expand Down

0 comments on commit 45af654

Please sign in to comment.