diff --git a/layouts/partials/track-card.html b/layouts/partials/track-card.html index c683e1a..ef4a9fd 100755 --- a/layouts/partials/track-card.html +++ b/layouts/partials/track-card.html @@ -1,5 +1,12 @@ {{/* Track Card Component */}} -
+{{- $hasVideo := .Resources.GetMatch "preview.*" -}} +
{{/* Cover Image/Video */}} {{- with .Resources.GetMatch "cover.*" }} @@ -7,7 +14,8 @@ {{ $.Title }} @@ -22,18 +30,19 @@ {{/* Video preview on hover */}} {{- with .Resources.GetMatch "preview.*" }} {{- end }} - {{/* Play overlay - hide if video exists */}} - {{- if not (.Resources.GetMatch "preview.*") }} + {{/* Play overlay - only show if NO video exists */}} + {{- if not $hasVideo }}