2020-01-16 03:07:43 +00:00
|
|
|
{{ define "main"}}
|
|
|
|
{{ partial "header.html" . }}
|
2022-05-08 20:11:05 +00:00
|
|
|
<main>
|
2022-05-08 22:02:35 +00:00
|
|
|
{{ partial "search.html" . }}
|
2022-05-08 22:06:32 +00:00
|
|
|
{{ partial "tags/all.html" . }}
|
2022-11-23 00:06:34 +00:00
|
|
|
|
|
|
|
<br/>
|
|
|
|
{{ $posts := where site.RegularPages "Type" "blog" }}
|
|
|
|
{{ $postCount := len $posts }}
|
|
|
|
{{ range last 1 $posts }}
|
|
|
|
{{ $tags := .Site.Taxonomies.tags }}
|
2022-11-23 04:25:30 +00:00
|
|
|
<div class='bloglist-teaser'>
|
2022-11-23 00:06:34 +00:00
|
|
|
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>
|
2022-11-23 04:25:30 +00:00
|
|
|
spanning
|
|
|
|
{{ len $tags }} topics within the dropdown above.
|
2022-11-23 00:06:34 +00:00
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-01-16 03:07:43 +00:00
|
|
|
<!-- contents -->
|
2022-11-23 04:25:30 +00:00
|
|
|
<div class="bloglist">
|
2020-01-16 03:07:43 +00:00
|
|
|
{{ $listPageDateFormat := .Site.Params.listPageDateFormat | default "January, 2006"}}
|
|
|
|
{{ range $index, $value := .Pages.GroupByDate $listPageDateFormat }}
|
2022-05-08 22:02:35 +00:00
|
|
|
{{ if (ne $index 0) }}
|
|
|
|
<hr class="separator">
|
|
|
|
{{ end }}
|
2022-11-23 04:25:30 +00:00
|
|
|
<p class="bloglist-date">{{ .Key }}</p>
|
2022-05-08 22:02:35 +00:00
|
|
|
{{ range .Pages }}
|
2022-11-23 05:56:13 +00:00
|
|
|
<div class="bloglist-item">
|
|
|
|
<p><a href="{{ .Permalink }}">{{ .Title }}</a></p>
|
|
|
|
<p class="bloglist-item-tag">
|
|
|
|
{{ range .Params.tags }}
|
|
|
|
{{ $name := . }}
|
|
|
|
{{ with $.Site.GetPage (printf "/tags/%s" (. | urlize)) }}
|
|
|
|
<span><a href="{{ .Permalink }}">#{{ $name }}</a> </span>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</p>
|
|
|
|
</div>
|
2022-05-08 22:02:35 +00:00
|
|
|
{{ end }}
|
2020-01-16 03:07:43 +00:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
2022-05-08 20:11:05 +00:00
|
|
|
</main>
|
2020-01-16 03:07:43 +00:00
|
|
|
{{ partial "footer.html" . }}
|
|
|
|
{{ end }}
|