From ce834f7b9c340c17b7339c9802faa5fab55b3734 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Sat, 24 Jul 2021 14:04:48 +0100 Subject: [PATCH] fix: typo in audio shortcode Although typo didn't actually cause any issues as there's a URL-based fallback in place. --- wowchemy/layouts/shortcodes/audio.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wowchemy/layouts/shortcodes/audio.html b/wowchemy/layouts/shortcodes/audio.html index f6679ba9..3ef93b66 100644 --- a/wowchemy/layouts/shortcodes/audio.html +++ b/wowchemy/layouts/shortcodes/audio.html @@ -6,7 +6,7 @@ {{ $is_remote := strings.HasPrefix $destination "http" }} {{- $asset := "" -}} {{- if not $is_remote -}} - {{- $asset = (.Page.Resources.ByType "image").GetMatch $destination -}} + {{- $asset = (.Page.Resources.ByType "audio").GetMatch $destination -}} {{- if not $asset -}} {{- $asset = resources.Get (path.Join "media" $destination) -}} {{- end -}}