mirror of
https://github.com/yuzu-emu/shared-bulma-theme.git
synced 2024-11-22 19:15:42 +01:00
28 lines
898 B
HTML
28 lines
898 B
HTML
{{ define "main" }}
|
|
<section class="section baguetteBox">
|
|
<h1 class="title">{{ .Title }}</h1>
|
|
|
|
{{ .Content }}
|
|
|
|
<div class="tile is-ancestor">
|
|
{{ $columns := 3 }}
|
|
{{ $files := readDir "/static/images/screenshots/" }}
|
|
{{ range $index, $element := $files }}
|
|
{{ $fileTitle := (index (split .Name "-") 1) }}
|
|
{{ $fileTitle := (index (split $fileTitle ".") 0) }}
|
|
<div class="tile is-parent">
|
|
<div class="tile is-child is-boxed">
|
|
<a href="/images/screenshots/{{ .Name }}" title="{{ $fileTitle }}">
|
|
<img src="/images/screenshots/thumbs/{{ .Name }}" alt="{{ $fileTitle }}">
|
|
</a>
|
|
</div>
|
|
</div>
|
|
{{if eq (mod $index $columns) (sub $columns 1)}}
|
|
</div>
|
|
<div class="tile is-ancestor">
|
|
{{ end }}
|
|
{{ end }}
|
|
</div>
|
|
</section>
|
|
{{ end }}
|