53 lines
1.9 KiB
HTML
53 lines
1.9 KiB
HTML
{{ define "main" }}
|
|
{{ $titleWrap := .Params.titleWrap }}
|
|
|
|
<header class="header basicflex-column">
|
|
<h3 class="h3 terms__title">
|
|
{{ .Title }}
|
|
</h3>
|
|
{{ if not .Params.subtitle }}
|
|
<div>
|
|
{{ .Content }}
|
|
</div>
|
|
{{ end }}
|
|
</header>
|
|
<main class="main archive">
|
|
{{ if .Params.subtitle }}
|
|
<div class="archive__content">
|
|
{{ .Content }}
|
|
</div>
|
|
<h4 class="archive__subtitle">
|
|
{{ .Params.subtitle }}
|
|
</h4>
|
|
{{ end }}
|
|
<div class="archive__container">
|
|
{{ $pages := (where .Site.RegularPages "Section" "talks") }}
|
|
{{ $paginator := .Paginate ($pages.GroupByPublishDate ($.Param "talksGroupByDate" | default "2006")) ($.Param "talksPaginate") }}
|
|
|
|
{{ range ($paginator).PageGroups }}
|
|
<span class="archive__key">{{ .Key }}</span>
|
|
<ul class="archive__ul" data-dir="{{ $.Param "languagedir" | default "ltr" }}">
|
|
{{ range .Pages }}
|
|
<li class="archive__li" data-dir="{{ $.Param "languagedir" | default "ltr" }}">
|
|
<span class="talk__date" data-dir="{{ $.Param "languagedir" | default "ltr" }}">
|
|
{{ .PublishDate.Format (i18n "talks-dateformat") }}
|
|
</span>
|
|
{{ if .Params.disableLink }}
|
|
<div class="talk__title" data-title-wrap="{{ $titleWrap | default "wrap"}}" data-dir="{{ $.Param "languagedir" | default "ltr" }}">{{ .Title }}</div>
|
|
{{ else }}
|
|
<a href="{{ if .Params.externalLink }}{{ .Params.externalLink }}{{ else }}{{ .Permalink }}{{ end }}" target="{{ with .Params.externalLink }}_blank{{ end }}" rel="{{ with .Params.externalLink }}noreferrer{{ end }}" class="talk__title" data-title-wrap="{{ $titleWrap | default "wrap"}}" data-dir="{{ $.Param "languagedir" | default "ltr" }}">{{ .Title }}</a>
|
|
{{ end }}
|
|
</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>
|
|
{{ end }}
|