2020-09-23 12:52:32 +05:30
|
|
|
{{- define "main" }}
|
2020-07-23 03:00:51 +05:30
|
|
|
|
2020-09-20 17:00:45 +05:30
|
|
|
<header class="page-header">
|
|
|
|
<h1>{{ .Title }}</h1>
|
2021-01-27 21:19:21 +05:30
|
|
|
{{- if .Description }}
|
|
|
|
<div class="post-description">
|
|
|
|
{{ .Description }}
|
|
|
|
</div>
|
|
|
|
{{- end }}
|
2020-09-20 17:00:45 +05:30
|
|
|
</header>
|
2020-09-23 12:52:32 +05:30
|
|
|
|
|
|
|
{{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
|
2021-06-17 12:07:15 +05:30
|
|
|
|
2022-03-27 18:44:06 +05:30
|
|
|
{{- if site.Params.ShowAllPagesInArchive }}
|
2021-06-17 12:07:15 +05:30
|
|
|
{{- $pages = site.RegularPages }}
|
|
|
|
{{- end }}
|
|
|
|
|
2020-09-23 12:52:32 +05:30
|
|
|
{{- range $pages.GroupByPublishDate "2006" }}
|
|
|
|
{{- if ne .Key "0001" }}
|
2020-09-20 17:00:45 +05:30
|
|
|
<div class="archive-year">
|
2020-09-29 15:54:39 +05:30
|
|
|
<h2 class="archive-year-header">
|
|
|
|
{{- replace .Key "0001" "" }}<sup class="archive-count"> {{ len .Pages }}</sup>
|
|
|
|
</h2>
|
2020-09-23 12:52:32 +05:30
|
|
|
{{- range .Pages.GroupByDate "January" }}
|
2020-09-20 17:00:45 +05:30
|
|
|
<div class="archive-month">
|
2020-11-28 22:50:56 -05:00
|
|
|
<h3 class="archive-month-header">{{- .Key }}<sup class="archive-count"> {{ len .Pages }}</sup></h3>
|
2020-09-20 17:00:45 +05:30
|
|
|
<div class="archive-posts">
|
2021-03-30 18:07:36 +05:30
|
|
|
{{- range .Pages }}
|
2020-09-23 12:52:32 +05:30
|
|
|
{{- if eq .Kind "page" }}
|
2020-09-20 17:00:45 +05:30
|
|
|
<div class="archive-entry">
|
|
|
|
<h3 class="archive-entry-title">
|
2020-09-23 12:52:32 +05:30
|
|
|
{{- .Title | markdownify }}
|
2021-09-04 12:03:12 +05:30
|
|
|
{{- if .Draft }}<sup><span class="entry-isdraft"> [draft]</span></sup>{{- end }}
|
2020-09-20 17:00:45 +05:30
|
|
|
</h3>
|
|
|
|
<div class="archive-meta">
|
2020-10-20 18:38:29 +05:30
|
|
|
{{- partial "post_meta.html" . -}}
|
2020-07-23 03:00:51 +05:30
|
|
|
</div>
|
2020-09-20 17:00:45 +05:30
|
|
|
<a class="entry-link" aria-label="post link to {{ .Title | plainify }}" href="{{ .Permalink }}"></a>
|
2020-07-23 03:00:51 +05:30
|
|
|
</div>
|
2020-09-23 12:52:32 +05:30
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
2020-07-23 03:00:51 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
2020-09-23 12:52:32 +05:30
|
|
|
{{- end }}
|
2020-07-23 03:00:51 +05:30
|
|
|
</div>
|
2020-09-23 12:52:32 +05:30
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
2020-09-20 17:00:45 +05:30
|
|
|
|
2021-03-30 18:07:36 +05:30
|
|
|
{{- end }}{{/* end main */}}
|