Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Adds video shortcode #244

Merged
merged 2 commits into from
Jun 15, 2021
Merged

✨ Adds video shortcode #244

merged 2 commits into from
Jun 15, 2021

Conversation

h-enk
Copy link
Member

@h-enk h-enk commented Apr 20, 2021

Usage

{{< video ratio="16x9" attributes="controls autoplay muted" webm-src="videos/flower.webm" mp4-src="videos/flower.mp4" >}}
Parameters Values
ratio <1x1 | 4x3 | 16x9 | 21x9>
attributes [Attributes]
webm-src [path/to/file.webm]
mp4-src [path/to/file.mp4]

Renders

Snag_29516e4

<div class="ratio ratio-16x9">
  <video controls autoplay muted>
    <source src="/videos/flower.webm" type="video/webm">
    <source src="/videos/flower.mp4" type="video/mp4">
    Sorry, your browser doesn't support embedded videos.
  </video>
</div>

Resources

@h-enk h-enk added the enhancement New feature or request label Apr 20, 2021
@h-enk h-enk added this to the v0.3.0 milestone Apr 20, 2021
@h-enk h-enk self-assigned this Apr 20, 2021
@h-enk
Copy link
Member Author

h-enk commented Apr 20, 2021

@h-enk h-enk linked an issue Apr 20, 2021 that may be closed by this pull request
@h-enk h-enk removed this from the v0.3.0 milestone Apr 20, 2021
@h-enk h-enk merged commit ecae47d into master Jun 15, 2021
@h-enk h-enk deleted the video-shortcode branch June 15, 2021 11:47
adhadse pushed a commit to adhadse/doks that referenced this pull request Sep 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add video shortcode
1 participant