fix: typo in audio shortcode

Although typo didn't actually cause any issues as there's a URL-based fallback in place.
This commit is contained in:
George Cushen committed 2021-07-24 14:04:53 +01:00
1 parent 265894f904
commit ce834f7b9c
1 file changed
+1 -1
+1 -1
View File
@@ -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 -}}