hugo-theme-zzo/layouts/talks/list.html

39 lines
1.3 KiB
HTML
Raw Normal View History

2019-12-31 02:26:57 +00:00
{{ define "main" }}
{{ $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") }}
{{ $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>
<ul class="archive__ul" data-dir="{{ $.Param "languagedir" | default "ltr" }}">
2019-12-31 02:26:57 +00:00
{{ range .Pages }}
<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>
<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 }}