Hugo Media Shortcodes (#62)
* Add audio Shortcode * Add video Shortcode * Refactor Shortcodes * Add src parameter to media shortcodes
This commit is contained in:
parent
05cb4e47db
commit
50bae0443b
4
site/themes/citra-bs-theme/layouts/shortcodes/audio.html
Normal file
4
site/themes/citra-bs-theme/layouts/shortcodes/audio.html
Normal 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>
|
4
site/themes/citra-bs-theme/layouts/shortcodes/video.html
Normal file
4
site/themes/citra-bs-theme/layouts/shortcodes/video.html
Normal 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>
|
Loading…
Reference in New Issue
Block a user