2019-12-31 02:26:57 +00:00
{{ define "main" }}
2020-01-20 06:14:36 +00:00
{{ $titleWrap := .Params.titleWrap }}
2020-02-13 11:44:18 +00:00
< header class = "header basicflex-column" >
2019-12-31 02:26:57 +00:00
< h3 class = "h3 terms__title" >
{{ .Title }}
< / h3 >
2020-02-13 15:39:47 +00:00
< div class = "px py p2 terms__content" >
2019-12-31 02:26:57 +00:00
{{ .Content }}
< / div >
< / header >
< main class = "main archive" >
2020-02-13 15:39:47 +00:00
{{ with .Params.subtitle }}
< h6 class = "archive__subtitle h6" >
{{ . }}
< / h6 >
2020-02-13 13:18:02 +00:00
{{ end }}
2019-12-31 02:26:57 +00:00
< div class = "archive__container" >
{{ $pages := (where .Site.RegularPages "Section" "talks") }}
2020-01-31 06:06:30 +00:00
{{ $paginator := .Paginate ($pages.GroupByPublishDate ($.Param "talksGroupByDate" | default "2006")) ($.Param "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-02-13 15:19:26 +00:00
{{ if .Params.disableLink }}
< div class = "talk__title" data-title-wrap = "{{ $titleWrap | default " wrap " } } " data-dir = "{{ $.Param " languagedir " | default " ltr " } } " > {{ .Title }}< / div >
{{ else }}
2020-02-13 15:31:37 +00:00
< 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 >
2020-02-13 15:19:26 +00:00
{{ end }}
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-02-13 15:19:26 +00:00
{{ end }}