{{- /* games-filter.html — Alpine.js-powered filter for the slots library. Call with (dict "page" . "games" ). Cards are rendered server-side (so thumbnails use the image pipeline) and shown/hidden by the gamesFilter Alpine component (assets/js/games-filter.js). */ -}} {{- $games := .games -}} {{- $providers := slice -}} {{- range $games -}}{{ with .Params.provider }}{{ $providers = $providers | append . }}{{ end }}{{- end -}} {{- $providers = $providers | uniq | sort -}} {{- $categories := slice -}} {{- range $games -}}{{ with .Params.category }}{{ $categories = $categories | append . }}{{ end }}{{- end -}} {{- $categories = $categories | uniq | sort -}}
{{/* Controls */}}

game(s) shown

{{/* Cards */}}
{{- range $games -}} {{- $img := .Resources.GetMatch "thumb.*" -}}
{{ partial "responsive-image.html" (dict "resource" $img "alt" (printf "%s by %s" .Title (.Params.provider | default "provider")) "class" "h-full w-full object-cover" "widths" (slice 300 600) "sizes" "(min-width:1024px) 300px, (min-width:640px) 50vw, 100vw") }}
{{ .Params.provider }} {{ .Params.category }}

{{ .Title }}

{{ with .Params.rtp }}

RTP {{ . }}%

{{ end }}
{{- end -}}

No games match your filters.