2018-07-09 13:13:17 +02:00
|
|
|
{{ define "main" }}
|
2018-11-10 07:03:59 +01:00
|
|
|
<section class="section baguetteBox">
|
2018-07-09 13:13:17 +02:00
|
|
|
<h1 class="title">{{ .Title }}</h1>
|
|
|
|
|
|
|
|
{{ .Content }}
|
|
|
|
|
|
|
|
<div class="tile is-ancestor">
|
2018-11-10 07:03:59 +01:00
|
|
|
{{ $columns := 3 }}
|
|
|
|
{{ $files := readDir "/static/images/screenshots/" }}
|
2019-01-08 05:16:19 +01:00
|
|
|
{{ range $index, $element := $files }}
|
2018-11-10 07:03:59 +01:00
|
|
|
{{ $fileTitle := (index (split .Name "-") 1) }}
|
|
|
|
{{ $fileTitle := (index (split $fileTitle ".") 0) }}
|
2018-07-09 13:13:17 +02:00
|
|
|
<div class="tile is-parent">
|
|
|
|
<div class="tile is-child is-boxed">
|
|
|
|
<a href="/images/screenshots/{{ .Name }}" title="{{ $fileTitle }}">
|
2018-11-10 07:03:59 +01:00
|
|
|
<img src="/images/screenshots/thumbs/{{ .Name }}" alt="{{ $fileTitle }}">
|
2018-07-09 13:13:17 +02:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-11-10 07:03:59 +01:00
|
|
|
{{if eq (mod $index $columns) (sub $columns 1)}}
|
2018-07-09 13:13:17 +02:00
|
|
|
</div>
|
|
|
|
<div class="tile is-ancestor">
|
2018-11-10 07:03:59 +01:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2018-07-09 13:13:17 +02:00
|
|
|
</div>
|
|
|
|
</section>
|
2019-01-08 05:16:19 +01:00
|
|
|
{{ end }}
|