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 -}}