Browse Source

fix: typo in audio shortcode

Although typo didn't actually cause any issues as there's a URL-based fallback in place.
George Cushen 3 years ago
parent
commit
ce834f7b9c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      wowchemy/layouts/shortcodes/audio.html

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