Browse Source

format games layouts

master
Alexander Avery 10 months ago
parent
commit
d52cf973e1
  1. 41
      layouts/games/list.html
  2. 3
      layouts/games/meta-extra.html

41
layouts/games/list.html

@ -1,22 +1,27 @@
{{ define "main" }}
{{ partial "article-meta.html" . }}
<main>
{{ partial "article-meta.html" . }}
{{ if .Params.toc }}
{{ .TableOfContents }}
{{ end }}
{{ .Content }}
</main>
{{ if gt (len .Data.Pages) 0 }}
<section>
<h2>Devlogs:</h2>
</section>
<section class="article-list">
{{ range .Data.Pages }}
{{ partial "article-card.html" . }}
{{ end }}
</section>
{{ end }}
{{ if .Params.toc }}
{{ .TableOfContents }}
{{ end }}
<div class="content-wrapper">
<main>
{{ .Content }}
{{ if gt (len .Data.Pages) 0 }}
<h2>Devlogs:</h2>
<section class="article-list">
{{ range .Data.Pages }}
{{ partial "article-card.html" . }}
{{ end }}
</section>
{{ end }}
<a href="/"> >> Home</a>
</main>
</div>
{{ end }}

3
layouts/games/meta-extra.html

@ -1,6 +1,5 @@
{{ if .Params.releaseDate }}
<h2 class="small-text">Released {{ dateFormat "Mon | Jan 2, 2006" .Params.releaseDate }}</h2>
<div class="break"/>
<h2 class="small-text center-text">Released {{ dateFormat "Mon | Jan 2, 2006" .Params.releaseDate }}</h2>
{{ end }}
<h2 class="small-text">Platforms:</h2>

Loading…
Cancel
Save