2019-12-31 02:26:57 +00:00
|
|
|
{{ define "main" }}
|
2020-01-20 06:14:36 +00:00
|
|
|
{{ $titleWrap := .Params.titleWrap }}
|
|
|
|
|
2019-12-31 02:26:57 +00:00
|
|
|
<header class="header">
|
|
|
|
<h3 class="h3 terms__title">
|
|
|
|
{{ .Title }}
|
|
|
|
</h3>
|
|
|
|
<div>
|
|
|
|
{{ .Content }}
|
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
<main class="main archive">
|
|
|
|
<div class="archive__container">
|
|
|
|
{{ $pages := (where .Site.RegularPages "Section" "talks") }}
|
2020-01-01 16:35:53 +00:00
|
|
|
{{ $paginator := .Paginate ($pages.GroupByPublishDate (.Site.Params.talksGroupByDate | default "2006")) .Site.Params.talksPaginate }}
|
2019-12-31 02:26:57 +00:00
|
|
|
|
|
|
|
{{ range ($paginator).PageGroups }}
|
|
|
|
<span class="archive__key">{{ .Key }}</span>
|
2020-01-28 04:37:42 +00:00
|
|
|
<ul class="archive__ul" data-dir="{{ $.Param "languagedir" | default "ltr" }}">
|
2019-12-31 02:26:57 +00:00
|
|
|
{{ range .Pages }}
|
2020-01-28 04:37:42 +00:00
|
|
|
<li class="archive__li" data-dir="{{ $.Param "languagedir" | default "ltr" }}">
|
|
|
|
<span class="talk__date" data-dir="{{ $.Param "languagedir" | default "ltr" }}">
|
2020-01-01 05:23:11 +00:00
|
|
|
{{ .PublishDate.Format (i18n "talks-dateformat") }}
|
2019-12-31 02:26:57 +00:00
|
|
|
</span>
|
2020-01-28 04:37:42 +00:00
|
|
|
<a href="{{ .Permalink }}" class="talk__title" data-title-wrap="{{ $titleWrap | default "wrap"}}" data-dir="{{ $.Param "languagedir" | default "ltr" }}">{{ .Title }}</a>
|
2019-12-31 02:26:57 +00:00
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
<div class="grow"></div>
|
|
|
|
{{ partial "pagination/pagination" . }}
|
|
|
|
<div class="hide">
|
|
|
|
{{ partial "search/site-search" . }}
|
|
|
|
</div>
|
|
|
|
{{ partial "script/archive-script" . }}
|
|
|
|
</main>
|
2020-01-28 22:25:47 +00:00
|
|
|
{{ end }}
|