list.html 1.08 KB
Newer Older
1
2
3
4
{{ define "title" }}
  Games – {{ .Site.Title }}
{{ end }}

Tobias Bengfort's avatar
Tobias Bengfort committed
5
{{ define "main" }}
6
  <input type="radio" form="filters" name="game-filter" class="visually-hidden" id="filter-all" checked>
radow's avatar
radow committed
7
8
9
  <input type="radio" form="filters" name="game-filter" class="visually-hidden" id="filter-full-game">
  <input type="radio" form="filters" name="game-filter" class="visually-hidden" id="filter-jam">
  <input type="radio" form="filters" name="game-filter" class="visually-hidden" id="filter-prototype">
Tobias Bengfort's avatar
Tobias Bengfort committed
10
11

  <form id="filters" aria-label="Filters" class="text-center mt-2">
12
13
14
15
    <label for="filter-all" class="btn bg-brand mb-1">All</label>
    <label for="filter-full-game" class="btn bg-brand mb-1">full game</label>
    <label for="filter-jam" class="btn bg-brand mb-1">jam</label>
    <label for="filter-prototype" class="btn bg-brand mb-1">prototype</label>
Tobias Bengfort's avatar
Tobias Bengfort committed
16
17
  </form>

18
  <ul class="tiles mt-2 mb-3">
Tobias Bengfort's avatar
Tobias Bengfort committed
19
    {{ range .Pages }}
Tobias Bengfort's avatar
Tobias Bengfort committed
20
      <li class="{{ if .Params.featured }}featured{{ end }}" data-category="{{ .Params.category }}">
Tobias Bengfort's avatar
Tobias Bengfort committed
21
        {{ partial "game_tile.html" . }}
Tobias Bengfort's avatar
Tobias Bengfort committed
22
23
24
25
      </li>
    {{ end }}
  </ul>
{{ end }}