31 lines
924 B
HTML
31 lines
924 B
HTML
{{ define "main" }}
|
|
<header class="header">
|
|
<h3 class="h3 terms__title">
|
|
{{ .Title }}
|
|
</h3>
|
|
<div>
|
|
{{ .Content }}
|
|
</div>
|
|
</header>
|
|
</span>
|
|
<main class="main archive">
|
|
<div class="archive__container">
|
|
{{ $paginator := .Paginate (.Site.RegularPages.GroupByDate (.Site.Params.archiveGroupByDate | default "2006")) .Site.Params.archivePaginate }}
|
|
|
|
{{ range ($paginator).PageGroups }}
|
|
<span class="archive__key">{{ .Key }}</span>
|
|
<ul class="archive__ul">
|
|
{{ range .Pages }}
|
|
<li class="archive__li">
|
|
<span class="archive__type">{{ .Type }}</span>
|
|
<a href="{{ .Permalink }}" class="archive__title">{{ .Title }}</a>
|
|
<span class="meta archive__date">{{ .Date.Format (i18n "archive-dateformat") }}</span>
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ end }}
|
|
</div>
|
|
<div class="grow"></div>
|
|
{{ partial "pagination/pagination-list" . }}
|
|
</main>
|
|
{{ end }} |