Browse Source

format games layouts

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

23
layouts/games/list.html

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

3
layouts/games/meta-extra.html

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

Loading…
Cancel
Save