Hugo Media Shortcodes (#62)

* Add audio Shortcode

* Add video Shortcode

* Refactor Shortcodes

* Add src parameter to media shortcodes
This commit is contained in:
Andrea Pascal 2017-11-07 19:41:58 -04:00 committed by James
parent 05cb4e47db
commit 50bae0443b
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,4 @@
<audio preload="auto" controls>
<source src="{{.Get "src"}}" type="audio/ogg">
Your browser doesn't support Ogg Vorbis audio. :(
</audio>

View File

@ -0,0 +1,4 @@
<video preload="auto" controls>
<source src="{{.Get "src"}}" type="video/ogg">
Your browser doesn't support Ogg Theora video. :(
</video>