Added tracks layout

This commit is contained in:
Brandon Rozek 2022-05-29 12:52:49 -04:00
parent b3373844ab
commit b663bb8028
4 changed files with 65 additions and 1 deletions

20
layouts/tracks/list.html Normal file
View file

@ -0,0 +1,20 @@
{{ define "main"}}
{{ partial "header.html" . }}
<main>
{{ partial "search.html" . }}
<!-- contents -->
<div id="feedList">
{{ $listPageDateFormat := .Site.Params.listPageDateFormat | default "January, 2006"}}
{{ range $index, $value := .Pages.GroupByDate $listPageDateFormat }}
{{ range .Pages }}
<article class="h-entry">
<h2 class='title p-name'><a class="u-url" href="{{ .Permalink }}">{{ .Title }}</a></h2>
{{ .Scratch.Set "noDateUpdate" true }}
{{ partial "date.html" . }}
</article>
{{ end }}
{{ end }}
</div>
</main>
{{ partial "footer.html" . }}
{{ end }}