From 7f205c23bdc9340fdffc524ef497334659b0395b Mon Sep 17 00:00:00 2001 From: Dominic Reich Date: Fri, 27 Dec 2024 06:55:41 +0100 Subject: [PATCH] adds audio shortcode --- layouts/shortcodes/audio.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 layouts/shortcodes/audio.html diff --git a/layouts/shortcodes/audio.html b/layouts/shortcodes/audio.html new file mode 100644 index 0000000..f724ce8 --- /dev/null +++ b/layouts/shortcodes/audio.html @@ -0,0 +1,12 @@ +{{- $src := .Get "src" | default (.Get 0) -}} {{- $title := .Get "title" | +default (.Get 1) | default "Shared audio file" }} + + +
{{ $title }}