Skip to content

Commit 44f2034

Browse files
committed
changed sort order
1 parent 4d074ac commit 44f2034

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

layouts/partials/admin/sessions/day.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,15 @@ <h3>{{ .day }}</h3>
1818
<th>youtube </th>
1919
</thead>
2020
<tbody>
21-
{{ range $index, $element := sort $all_sessions ".Params.when_time"}}
21+
{{ range $index, $element := sort $all_sessions ".Params.hosted_by"}}
2222
{{ $organizers := partial "params/organizers.html" . }}
23+
{{ $time := index .Site.Data.schedule.times .Params.when_time }}
2324
{{ if .Params.hey_summit}}
2425
<tr>
2526
<td>{{ add $index 1}}</td>
2627
<td><a target="_blank" href="{{ .Permalink }}">{{ .Params.title }}..</a></td>
2728
{{ partial "admin/sessions/cell.html" (dict "value" .Params.when_day "error" "missing") }}
28-
{{ partial "admin/sessions/cell.html" (dict "value" .Params.when_time "error" "missing") }}
29+
{{ partial "admin/sessions/cell.html" (dict "value" $time "error" "missing") }}
2930
<td> {{ partial "schedule/list/organizers-links.html" ( dict "this" . "organizers" $organizers) }}</td>
3031
{{ partial "admin/sessions/cell-link.html" (dict "value" .Params.hey_summit "text" "hey summit" "error" "needs hey summit") }}
3132
{{ partial "admin/sessions/cell.html" (dict "value" .Params.hosted_by "error" "missing") }}

0 commit comments

Comments
 (0)