50 lines
1.6 KiB
HTML
50 lines
1.6 KiB
HTML
|
|
{{ define "main" }}
|
|
<div class="col-xs-12 col-sm-8 col-md-9 content-column">
|
|
{{ partial "mobile_nav_toggle.html" . }}
|
|
<div class="row">
|
|
<div class="col-lg-8">
|
|
<article class="h-entry">
|
|
|
|
<header>
|
|
<h1 class="p-name">Platform: {{ .Title }}</h1>
|
|
<hr/>
|
|
</header>
|
|
|
|
<div class="e-content">
|
|
{{ .Content | safeHTML }}
|
|
</div>
|
|
|
|
Browse the Codex: <a href="/games">all games</a> | <a href="/platforms">by platform</a> | <a href="/tags">the appendix</a><br/>
|
|
|
|
<h2>Games »</h2>
|
|
|
|
<div class="gamegridcontrols">
|
|
Sort by:
|
|
<button class="sortbtn sorted sorted-asc" data-sort="date" data-sorted="asc">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">
|
|
{{ $targetplatform := .Params.platform | lower }}
|
|
{{ range (where .Site.Pages ".Section" "in" (slice "games" "articles")) }}
|
|
{{ $platform := .Params.game_platform | lower }}
|
|
{{ if eq $targetplatform $platform }}
|
|
{{ partial "portfoliolite-block.html" . }}
|
|
{{ end }}
|
|
{{ end }}
|
|
</div>
|
|
|
|
<hr/>
|
|
|
|
</article>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{ end }}
|