mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-14 04:15:40 +00:00
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:
1 parent
265894f904
commit
ce834f7b9c
1 file changed
+1
-1
@@ -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 -}}
|
||||
|
||||
Reference in new issue
Block a user