Archived
0
0
Fork 0

Datengarten als Serie, Nr. 88 als Beispiel.

Fuer andere braucht es noch ein Import-Script.
This commit is contained in:
Daniel Molkentin 2018-05-18 13:36:00 +02:00
parent b8ebe04fc2
commit c93bd4c6e6
5 changed files with 69 additions and 8 deletions

View file

@ -0,0 +1,15 @@
<p>
<strong><i class="fa fa-user fa-fw"></i></strong> {{ .Page.Params.Speaker }}<br/>
<strong><i class="fa fa-calendar fa-fw"></i></strong> {{ dateFormat "02.01.2006, 15:04" .Page.Params.Event_date }} Uhr<br/>
<strong><i class="fa fa-language fa-fw"></i></strong> {{ .Page.Params.Language }}<br/>
<strong><i class="fa fa-map-marker fa-fw"></i></strong> {{ partial "location" .Page.Params.Location }}
</p>
{{ if isset .Page.Params "recording" }}
<p><strong><i class="fa fa-video-camera fa-fw"></i></strong> <a href="{{ .Page.Params.Recording }}">{{ .Page.Params.Recording }}</a></p>
{{ else }}
{{ if and (eq .Page.Params.Streaming true) (not (isset .Page.Params "recording" )) }}
<p><strong>Stream:</strong> <a href="https://streaming.media.ccc.de/datengarten">streaming.media.ccc.de/datengarten</a></p>
{{ else }}
<p><strong><i class="fa fa-exclamation-triangle fa-fw"></i></strong> Dieser Vortrag wird <strong>nicht</strong> gestreamed</a>! / This talk will <strong>not</strong> be streamed!</p>
{{ end }}
{{ end }}

View file

@ -0,0 +1,21 @@
{{ $series := or (.Get 0) $.Page.Params.series }}
<table>
<tr>
<th>No.</th>
<th>Date</th>
<th>Speaker</th>
<th>Topic</th>
<th>Video</th>
</tr>
{{ range $ind,$art := $.Site.Pages.ByDate }}
{{ if eq $art.Params.series $series }}
<tr>
<td>{{ $art.Params.no }}</td>
<td>{{ dateFormat "02.01.2006" $art.Params.event_date }}</td>
<td>{{ $art.Params.speaker }}</td>
<td><a href="{{ $art.Permalink }}">{{ $art.Params.subtitle }}</a></td>
<td><a href="{{ $art.Params.recording }}"><i class="fa fa-video-camera fa-fw"></i></a></td>
</tr>
{{ end }}
{{ end }}
</table>