2020-01-15 22:07:43 -05:00
|
|
|
{{ define "main"}}
|
|
|
|
{{ partial "header.html" . }}
|
2022-05-08 16:11:05 -04:00
|
|
|
<main>
|
2022-05-08 18:02:35 -04:00
|
|
|
{{ partial "search.html" . }}
|
2022-05-08 18:06:32 -04:00
|
|
|
{{ partial "tags/all.html" . }}
|
2022-11-22 19:06:34 -05:00
|
|
|
|
|
|
|
<br/>
|
|
|
|
{{ $posts := where site.RegularPages "Type" "blog" }}
|
|
|
|
{{ $postCount := len $posts }}
|
|
|
|
{{ range last 1 $posts }}
|
|
|
|
{{ $tags := .Site.Taxonomies.tags }}
|
|
|
|
<div style="font-size: 1.5rem; max-width: 30rem; margin-left: auto; margin-right: auto;">
|
|
|
|
Hello! This page contains <strong>{{ $postCount | lang.NumFmt 0 }} posts</strong>
|
|
|
|
written in the past <strong>{{ div (sub now.Unix .Date.Unix) 31536000 }} years</strong>
|
|
|
|
spanning {{ len $tags }} topics within the dropdown above.
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-01-15 22:07:43 -05:00
|
|
|
<!-- 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 }}
|
2020-01-15 22:07:43 -05:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
2022-05-08 16:11:05 -04:00
|
|
|
</main>
|
2020-01-15 22:07:43 -05:00
|
|
|
{{ partial "footer.html" . }}
|
|
|
|
{{ end }}
|