diff --git a/layouts/game/single.html b/layouts/game/single.html index e8a540f..b9cabb3 100644 --- a/layouts/game/single.html +++ b/layouts/game/single.html @@ -137,9 +137,29 @@ {{ end }} -

Screenshots

+ {{ if gt (len .Params.savefiles) 0 }} +

Savefiles

+ + + + + + + + + {{ range .Params.savefiles }} + + + + + {{ end }} + +
NameDescription
{{ .title }}{{ .description }}
+ {{ end }} + {{ $columns := 3 }} {{ if (where (readDir "/static/images/screenshots0") "Name" .File.BaseFileName) }} +

Screenshots

{{ $files := readDir (printf "/static/images/screenshots0/%s/" .File.BaseFileName) }} @@ -160,8 +180,6 @@ {{ end }}
- {{ else }} -

No screenshots have been uploaded for this game.

{{ end }} {{ end }}