From 870e3234b42b67232b0207d9178ef9bc4bf09bc4 Mon Sep 17 00:00:00 2001 From: "chris062689@gmail.com" Date: Thu, 15 Nov 2018 22:06:05 -0500 Subject: [PATCH] Updated game savefiles table format. --- layouts/game/single.html | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) 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 }}