www/layouts/shortcodes/series.html

30 lines
873 B
HTML
Raw Permalink Normal View History

{{ $series := or (.Get 0) $.Page.Params.series }}
<table>
2023-06-13 12:47:07 +02:00
<tr>
<th>No.</th>
<th>Date</th>
<th>Speaker</th>
<th>Topic</th>
<th>Video</th>
</tr>
{{ range $ind,$art := $.Site.Pages.ByDate.Reverse }}
{{ if eq $art.Params.series $series }}
<tr>
<td>{{ $art.Params.no }}</td>
<td>{{ dateFormat "02.01.2006" $art.Params.event.start }}</td>
2018-05-20 15:55:06 +02:00
{{ if isset $art.Params "speaker_url" }}
<td><a href="{{ $art.Params.speaker_url }}">{{ $art.Params.speaker }}</a></td>
2023-06-13 12:47:07 +02:00
{{ else }}
<td>{{ $art.Params.speaker }}</td>
2023-06-13 12:47:07 +02:00
{{ end }}
<td><a href="{{ $art.Permalink }}">{{ $art.Params.subtitle }}</a></td>
2023-06-13 12:47:07 +02:00
{{ if $art.Params.recording }}
<td><a href="{{ $art.Params.recording }}"><i class="fa fa-video fa-fw"></i></a></td>
2023-06-13 12:47:07 +02:00
{{ else }}
<td><i class="fa fa-video-slash fa-fw"></i></a></td>
{{ end }}
2023-06-13 12:47:07 +02:00
</tr>
{{ end }}
{{ end }}
</table>