summaryrefslogtreecommitdiff
path: root/themes/fredo/layouts/_shortcodes
diff options
context:
space:
mode:
authorFriedrich Beckmann <friedrich.beckmann@gmx.de>2025-06-14 13:48:40 +0200
committerFriedrich Beckmann <friedrich.beckmann@gmx.de>2025-06-14 13:48:40 +0200
commite4a8a804aa5353bcaa4403da291e02bd9fcd22db (patch)
tree140e3b62e66c10952392c6c1bb36104d40d4e24a /themes/fredo/layouts/_shortcodes
initial version
Diffstat (limited to 'themes/fredo/layouts/_shortcodes')
-rw-r--r--themes/fredo/layouts/_shortcodes/audio.html10
-rw-r--r--themes/fredo/layouts/_shortcodes/video.html6
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