diff options
Diffstat (limited to 'themes/fredo/layouts/_shortcodes')
-rw-r--r-- | themes/fredo/layouts/_shortcodes/audio.html | 10 | ||||
-rw-r--r-- | themes/fredo/layouts/_shortcodes/video.html | 6 |
2 files changed, 16 insertions, 0 deletions
diff --git a/themes/fredo/layouts/_shortcodes/audio.html b/themes/fredo/layouts/_shortcodes/audio.html new file mode 100644 index 0000000..d44de40 --- /dev/null +++ b/themes/fredo/layouts/_shortcodes/audio.html @@ -0,0 +1,10 @@ +<table> +<tr> +<td>{{- .Get "caption" -}}:</td> +<td> +<audio controls> + <source type="audio/mp4" src="{{- .Get "src" -}}"> +</audio> +</td> +</tr> +</table> diff --git a/themes/fredo/layouts/_shortcodes/video.html b/themes/fredo/layouts/_shortcodes/video.html new file mode 100644 index 0000000..debe1d4 --- /dev/null +++ b/themes/fredo/layouts/_shortcodes/video.html @@ -0,0 +1,6 @@ +<figure class="small-figure"> + <video controls> + <source type="video/mp4" src="{{ .Get "src" }}"> + </video> + <figcaption class="gallery-caption">{{ .Get "caption" }}</figcaption> +</figure>
\ No newline at end of file |