47 lines
1.6 KiB
HTML
47 lines
1.6 KiB
HTML
<div class="content-column">
|
|
<a class="h-card" rel="me" href="{{ .Site.BaseURL }}" style="border: none">
|
|
<img src="/img/logo.png" class="logo" alt="jefklaks codex logo" />
|
|
</a>
|
|
<article>
|
|
{{ if eq .Params.type "platform" }}
|
|
<h1><a href="/platforms">Platform</a>: {{ .Title }}</h1>
|
|
<hr/>
|
|
{{ end }}
|
|
{{ .Content }}
|
|
</article>
|
|
|
|
<h2>Game Codex »</h2>
|
|
|
|
{{ $pages := .RegularPagesRecursive }}
|
|
{{ if $pages }}
|
|
<div class="gamegridcontrols">
|
|
Sort:
|
|
<button class="sortbtn sorted sorted-descending" data-sort="date" data-sorted="descending">Date added</button>
|
|
<button class="sortbtn" data-sort="name">Title</button>
|
|
<button class="sortbtn" data-sort="year">Release year</button>
|
|
<button class="sortbtn" data-sort="hours">How long to beat</button>
|
|
<button class="sortbtn" data-sort="rating">Rating</button>
|
|
</div>
|
|
<noscript>
|
|
Sorting relies on JavaScript which is currently disabled.
|
|
</noscript>
|
|
<div class="gamegrid">
|
|
{{ range $pages }}
|
|
{{ if isset .Params "game_name" }}
|
|
{{ partial "gamegrid-block.html" . }}
|
|
{{ end }}
|
|
{{ end }}
|
|
</div>
|
|
{{ else }}
|
|
<p>
|
|
No entries yet. Check back soon!
|
|
</p>
|
|
{{ end }}
|
|
|
|
<p>
|
|
Browse the Codex: <a href="/games">all games</a> | <a href="/platforms">by platform</a> | <a href="/tags">the appendix</a>.
|
|
</p>
|
|
|
|
<hr/>
|
|
</div>
|