2020-01-31 22:53:04 +08:00
|
|
|
{{- define "title" }}
|
|
|
|
{{- T "all" | humanize}}{{ T .Section | default .Section | humanize }} | {{ .Site.Title -}}
|
|
|
|
{{- end -}}
|
2019-08-04 21:53:35 +08:00
|
|
|
|
2020-01-31 18:46:28 +08:00
|
|
|
{{- define "content" -}}
|
2020-02-01 19:47:58 +08:00
|
|
|
<div class="page archive">
|
2020-02-03 18:38:10 +08:00
|
|
|
{{- /* Title */ -}}
|
2020-02-14 01:30:33 +08:00
|
|
|
<h2 class="single-title animated pulse faster">
|
2020-01-31 18:46:28 +08:00
|
|
|
{{- T "all" | humanize}}{{ T .Section | default .Section | humanize -}}
|
2019-08-11 03:26:03 +08:00
|
|
|
</h2>
|
2019-08-24 19:32:41 +08:00
|
|
|
|
2020-02-03 18:38:10 +08:00
|
|
|
{{- /* Paginate */ -}}
|
2019-08-19 01:36:52 +08:00
|
|
|
{{- range (.Paginate (.Pages.GroupByDate "2006")).PageGroups -}}
|
|
|
|
<h3>{{ .Key }}</h3>
|
|
|
|
{{- range .Pages -}}
|
|
|
|
<article class="archive-item">
|
2020-01-31 18:46:28 +08:00
|
|
|
<a href="{{ .RelPermalink }}" class="archive-item-link">
|
|
|
|
{{- .Title -}}
|
|
|
|
</a>
|
2019-08-19 01:36:52 +08:00
|
|
|
<span class="archive-item-date">
|
|
|
|
{{- .Date.Format (.Site.Params.dateFormatToUse | default "01-02") -}}
|
|
|
|
</span>
|
|
|
|
</article>
|
|
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{- partial "paginator.html" . -}}
|
2019-08-11 03:26:03 +08:00
|
|
|
</div>
|
2020-02-07 00:10:00 +08:00
|
|
|
{{- end -}}
|