- {{ if (fileExists (print "static/images/game/boxart/" .File.BaseFileName ".png")) }}
-
+ {{ $boxart := resources.Get (printf "/images/game/boxart/%s.png" $gameId) }}
+ {{ if $boxart }} {{ $boxart_thumb := $boxart.Fill "328x300" }}
+
{{ else }}
{{ end }}
@@ -187,8 +188,6 @@
{{ $files := readDir (printf "/static/images/screenshots0/%s/" .File.BaseFileName) }}
{{ range $index, $element := $files }}
- {{ $fileTitle := (index (split .Name "-") 1) }}
- {{ $fileTitle := (index (split $fileTitle ".") 0) }}