{{/* Track Card Component */}} {{- $hasVideo := .Resources.GetMatch "preview.*" -}}
{{/* Cover Image/Video */}} {{- with .Resources.GetMatch "cover.*" }} {{- $img := .Resize "600x webp q85" }} {{ $.Title }} {{- else }}
{{- end }} {{/* Video preview on hover */}} {{- with .Resources.GetMatch "preview.*" }} {{- end }} {{/* Play overlay - only show if NO video exists */}} {{- if not $hasVideo }}
{{- end }}
{{/* Info */}}

{{ .Title }}

{{- with .Params.duration }} {{ . }} {{- end }}
{{- with .Params.genre }} {{ . }} {{- end }}