Skip to content

Commit

Permalink
Merge pull request #42 from rootwork/fix/update-videos
Browse files Browse the repository at this point in the history
  • Loading branch information
rootwork authored Oct 3, 2022
2 parents 579aa00 + 77bf877 commit 44fa8ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hugo/content/updates/welcome.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ figurePositionShow: false # Override global value for showing the figure label.
# keywords: # Pages do not have tags or categories; add keywords here to include them in metadata for SEO.
---

<img style="margin-top: 1rem;" loading="lazy" decoding="async" alt="You did it!" class="image_figure image_internal image_unprocessed" src="/updates/yeah2.gif" title=" ">
{{< video src="/updates/yeah.mp4" attrs="autoplay loop muted playsinline" >}}

To ensure all your updates get delivered, I suggest adding
**updates&#64;rootwork.org** to your contacts or address book. (You can write to
Expand Down
2 changes: 1 addition & 1 deletion hugo/layouts/shortcodes/video.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
< video src="videos/myvideo.mp4" attrs="controls" >

Video with autoplay on mute at 16x9 ratio and 50% width:
< video src="videos/myvideo.mp4" attrs="controls autoplay muted" ratio="16x9" width="50%" >
< video src="videos/myvideo.mp4" attrs="autoplay loop muted playsinline" ratio="16x9" width="50%" >

Video with autoplay at 1x1 ratio, a custom cover image, and a link to a YouTube version with captions:
< video src="videos/myvideo.mp4" cover="videos/myvideo_cover.jpg" attrs="controls autoplay mute" ratio="1x1" link="https://www.youtube.com/watch?v=aabbcc" caps="true">
Expand Down

0 comments on commit 44fa8ec

Please sign in to comment.