jefklakscodex/themes/jefklak-creative-portfolio/layouts/_default/single.html

73 lines
2.4 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">{{ .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 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 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 href="https://brainbaking.com/post/2020/09/reviving-a-80486/">DOS 6.22 - 486DX2-66</a> 1993 build.
{{ end }}
</div>
{{ end }}
<div class="categories">
{{ if isset $.Params "tags" }}
Categorized under:
{{ range .Params.tags }}
<a class="p-category" href="{{ $.Site.BaseURL }}tags/{{ . | urlize }}"><kbd class="item-tag">{{ . }}</kbd></a>
{{ end }}
{{ end }}
</div>
{{ partial "single-comments" . }}
{{ partial "single-mentions" . }}
<hr/>
</article>
</div>
</div>
</div>
{{ end }}