website-theme/layouts/blog/list.html

22 lines
628 B
HTML
Raw Normal View History

{{ define "main"}}
{{ partial "header.html" . }}
<main>
2022-05-08 18:02:35 -04:00
{{ partial "search.html" . }}
{{ partial "tags_list_all.html" . }}
<!-- contents -->
<div id="contentsList">
{{ $listPageDateFormat := .Site.Params.listPageDateFormat | default "January, 2006"}}
{{ range $index, $value := .Pages.GroupByDate $listPageDateFormat }}
2022-05-08 18:02:35 -04:00
{{ if (ne $index 0) }}
<hr class="separator">
{{ end }}
<p class="date">{{ .Key }}</p>
{{ range .Pages }}
<p><a href="{{ .Permalink }}">{{ .Title }}</a></p>
{{ end }}
{{ end }}
</div>
</main>
{{ partial "footer.html" . }}
{{ end }}