93 lines
3.4 KiB
HTML
93 lines
3.4 KiB
HTML
|
|
{{ define "main" }}
|
|
<div class="content-column">
|
|
<div class="row">
|
|
<article data-pagefind-body>
|
|
<header>
|
|
<h1 class="p-name" data-pagefind-meta="title">{{ .Title }}</h1>
|
|
{{ if isset $.Params "date" }}
|
|
<span class="metatitle">
|
|
{{ $createdate := .Date.Format (.Site.Params.dateFormat | default "2 January 2006") }}
|
|
|
|
<time datetime='{{ .Date.Format "2006-01-02" }}' class="dt-published" title="Created Date">
|
|
<svg class='icon icon-text'>
|
|
<title>calendar icon</title>
|
|
<use xlink:href='#cal1'></use>
|
|
</svg>
|
|
<a class="u-url u-uid" href="{{ .RelPermalink }}">
|
|
{{ $createdate }}
|
|
</a>
|
|
</time>
|
|
{{ end }}
|
|
</span>
|
|
<hr/>
|
|
</header>
|
|
|
|
<div class="e-content">
|
|
{{ with .Content }}
|
|
{{ . | safeHTML }}
|
|
{{ else }}
|
|
<p>No detailed review yet. Check back soon! </p>
|
|
{{ end }}
|
|
|
|
{{ .Scratch.Set "simplescore" 0 }}
|
|
{{ partial "score" . }}
|
|
</div>
|
|
|
|
{{ if isset $.Params "played_on" }}
|
|
<div class="categories">
|
|
Played on:
|
|
{{ if eq .Params.played_on "winxp" }}
|
|
<a class="p-category" href="https://brainbaking.com/post/2020/10/building-a-core2duo-winxp-retro-pc/">Windows XP - Core2Duo</a> 2006 build.
|
|
{{ else if eq .Params.played_on "win98" }}
|
|
<a class="p-category" href="https://brainbaking.com/post/2020/10/building-an-athlon-win98-retro-pc/">Windows 98 SE - Athlon 1.4</a> 2001 build.
|
|
{{ else if eq .Params.played_on "486" }}
|
|
<a class="p-category" href="https://brainbaking.com/post/2020/09/reviving-a-80486/">DOS 6.22 - 486DX2-66</a> 1993 build.
|
|
{{ end }}
|
|
|
|
</div>
|
|
{{ end }}
|
|
|
|
{{ $series := slice }}
|
|
{{ if isset .Params "series" }}
|
|
{{ $series = (where .Site.Pages ".Params.series" "eq" .Params.series).ByParam "game_release_year" }}
|
|
{{ $has_series := $series | len }}
|
|
{{ if gt $has_series 1 }}
|
|
<div class="series">
|
|
<strong><em>{{ .Params.series }}</em> series</strong> ▹
|
|
{{- range $series -}}
|
|
<a href="{{ .RelPermalink }}">{{ .Params.game_name }}</a> ○
|
|
{{- end -}}
|
|
</div>
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
{{ $related := (where ($.Scratch.Get "related" | complement $series) ".Params.game_name" "ne" nil) }}
|
|
{{ $has_related := $related | len }}
|
|
{{ if gt $has_related 0 }}
|
|
{{- $related = sort $related ".Params.game_release_year" "asc" }}
|
|
<div class="similar">
|
|
<strong>Related games</strong> ▹
|
|
{{- range $related | uniq -}}
|
|
<a href="{{ .RelPermalink }}">{{ .Params.game_name }}</a> ○
|
|
{{- end -}}
|
|
</div>
|
|
{{ end }}
|
|
|
|
<div class="categories">
|
|
{{ if isset $.Params "tags" }}
|
|
<strong>Categories</strong>:
|
|
{{ range .Params.tags }}
|
|
<a class="p-category" href="{{ $.Site.BaseURL }}tags/{{ . | urlize }}"><kbd class="item-tag">{{ . }}</kbd></a>
|
|
{{ end }}
|
|
{{ end }}
|
|
</div>
|
|
|
|
</article>
|
|
|
|
{{ partial "single-comments" . }}
|
|
<hr/>
|
|
</div>
|
|
</div>
|
|
{{ end }}
|