Explorar o código

fix: typo in audio shortcode

Although typo didn't actually cause any issues as there's a URL-based fallback in place.
George Cushen %!s(int64=3) %!d(string=hai) anos
pai
achega
ce834f7b9c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 -}}