talk: Sort and group talks by time_start instead of date published

* Affects the two types of talk widgets and talk archive
* Requires `time_start` to be present in front matter of all talks

Fix #409
This commit is contained in:
George Cushen committed 2017-12-17 19:36:11 +00:00
1 parent 18080b1137
commit ed61956cfa
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@
<div class="col-xs-12 col-md-8">
{{ with $page.Content }}<p>{{ . | markdownify }}</p>{{ end }}
{{ range first $page.Params.count (where $.Site.RegularPages "Type" "talk") }}
{{ range first $page.Params.count (sort (where $.Site.RegularPages "Type" "talk") ".Params.time_start" "desc") }}
{{ if eq $page.Params.list_format 1 }}
{{ partial "talk_li_detailed" . }}
{{ else }}
+1 -1
View File
@@ -10,7 +10,7 @@
<div class="col-xs-12 col-md-8">
{{ with $page.Content }}<p>{{ . | markdownify }}</p>{{ end }}
{{ range (where (where $.Site.RegularPages "Type" "talk") ".Params.selected" true) }}
{{ range (sort (where (where $.Site.RegularPages "Type" "talk") ".Params.selected" true) ".Params.time_start" "desc") }}
{{ if eq $page.Params.list_format 1 }}
{{ partial "talk_li_detailed" . }}
{{ else }}
+2 -2
View File
@@ -12,14 +12,14 @@
<div class="article-style" itemprop="articleBody">{{ . }}</div>
{{ end }}
{{ range .Data.Pages.GroupByDate "2006" }}
{{ range .Data.Pages.GroupByParamDate "time_start" "2006" }}
<div class="row" id="talk_list">
<div class="col-md-2">
<h3>{{ .Key }}</h3>
</div>
<div class="col-md-10">
{{ range .Pages.ByDate.Reverse }}
{{ range sort .Pages ".Params.time_start" "desc" }}
{{ if eq $.Params.list_format 1 }}
{{ partial "talk_li_detailed" . }}
{{ else }}