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-03-08 12:31:58 +00:00
< div class = "px py p2 single__contents" >
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-10-29 13:27:37 +00:00
{{ if gt (len $pages) 0 }}
{{ $paginator := .Paginate ($pages.GroupByPublishDate ($.Param "talksGroupByDate" | default "2006")) ($.Param "talksPaginate") }}
{{ range ($paginator).PageGroups }}
< span class = "archive__key" data-ani = "{{ $.Site.Params.enableUiAnimation | default " true " } } " > {{ .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 " } } " data-ani = "{{ $.Site.Params.enableUiAnimation | default " true " } } " >
{{ .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 >
2020-02-20 12:08:47 +00:00
{{ end }}
2020-10-29 13:27:37 +00:00
{{ with .Params.subLinks }}
< div class = "talk__icons" >
{{ range . }}
< a href = "{{ .link }}" class = "talk__icon" target = "_blank" rel = "noreferrer" title = "{{ .type }}" >
{{ partial (print "svgs/etc/" .type ".svg") (dict "width" 23 "height" 23) }}
< / a >
{{ end }}
< / div >
{{ end }}
< / li >
{{ end }}
< / ul >
2019-12-31 02:26:57 +00:00
{{ end }}
2020-10-29 13:27:37 +00:00
{{ else }}
{{ i18n "no-contents" | default "There is nothing to display" }}
2019-12-31 02:26:57 +00:00
{{ end }}
2020-10-29 13:27:37 +00:00
2019-12-31 02:26:57 +00:00
< / 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 }}