2021-07-01 21:19:16 +02:00
{{ 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 >
2022-04-08 18:01:26 +02:00
Browse the Codex: < a href = "/games" > all games< / a > | < a href = "/platforms" > by platform< / a > | < a href = "/tags" > the appendix< / a > < br / >
2021-07-01 21:19:16 +02:00
2022-04-08 18:01:26 +02:00
< h2 > Games » < / h2 >
2022-04-08 21:23:23 +02:00
< div class = "gamegridcontrols" >
Sort by: < button class = "sortbtn sorted sorted-asc" data-sort = "date" > 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 >
< / div >
2022-04-08 18:01:26 +02:00
< div class = "gamegrid" >
2021-07-02 11:36:35 +02:00
{{ $targetplatform := .Params.platform | lower }}
{{ range sort (where .Site.Pages ".Section" "in" (slice "games" "articles")) ".Params.game_name" "asc" }}
{{ $platform := .Params.game_platform | lower }}
{{ if eq $targetplatform $platform }}
2022-04-08 18:01:26 +02:00
{{ partial "portfoliolite-block.html" . }}
2021-07-02 11:36:35 +02:00
{{ end }}
2021-07-01 21:19:16 +02:00
{{ end }}
2022-04-08 18:01:26 +02:00
< / div >
2021-07-01 21:19:16 +02:00
< hr / >
< / article >
< / div >
< / div >
< / div >
{{ end }}