blob: ebc7d0cdaf2abcea3f9321e7035179d9e50de1d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
{{ partial "snippets/document-start.html" . }}
<article class="posts">
{{ partial "header.html" . }}
<div id="posts-archive" class="posts-list">
{{ partial "components/heatmap.html" . }}
{{ partial "components/pagefind.html" . }}
<!-- Post Archive List -->
{{ range (where site.RegularPages "Type" "in" site.Params.mainSections).GroupByDate "2006" -}}
<section class="posts-year-archive">
<h1 class="posts-year-title">
{{ .Key }}
<small class="font-mono">{{ len .Pages }} TOTAL POSTS</small>
</h1>
{{ range .Pages.GroupByDate "January" }}
<details class="posts-month-archive">
<summary>
<h2 class="posts-month-title">
{{ .Key }}
<small class="font-mono">{{ len .Pages }} POSTS</small>
</h2>
</summary>
<ul>
{{ range .Pages }}
<li>
<div class="row posts-line">
<div class="posts-date col-xs-3 col-sm-2">
<time datetime="{{ .Date.Format "2006-01-02 15:04:05 MST" }}">{{ .Date.Format "Jan 02" }}</time>
</div>
<div class="posts-title col-xs-9 col-sm-10">
<div class="row">
<div class="col-xs-11 col-sm-10">
<a
class="posts-title-link"
href="{{ .RelPermalink }}"
data-umami-event="Click Post Link from Index"
>{{ .Title }}</a>
</div>
<div class="col-xs-1 col-sm-2 posts-categories">
{{ with .Params.categories }}
<div class="posts-category">
<a href="/categories/{{ . }}/"><strong>{{ . }}</strong></a>
</div>
{{ end }}
</div>
</div>
</div>
</div>
</li>
{{ end }}
</ul>
</details>
{{ end }}
</section>
{{ end }}
</div>
</article>
{{ partial "snippets/document-end.html" . }}
|