forked from cccb-website-team/www
Datengarten als Serie, Nr. 88 als Beispiel.
Fuer andere braucht es noch ein Import-Script.
This commit is contained in:
parent
b8ebe04fc2
commit
c93bd4c6e6
5 changed files with 69 additions and 8 deletions
5
layouts/partials/location.html
Normal file
5
layouts/partials/location.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
{{if eq . "CCCB" }}
|
||||
Chaos Computer Club Berlin e.V. (<a href="/page/anfahrt/">Anfahrt <i class="fa fa-map fa-fw"></i></a>)
|
||||
{{else}}
|
||||
{{ . }}
|
||||
{{end}}
|
15
layouts/shortcodes/datengarten-infobox.html
Normal file
15
layouts/shortcodes/datengarten-infobox.html
Normal 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 }}
|
21
layouts/shortcodes/series.html
Normal file
21
layouts/shortcodes/series.html
Normal 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>
|
Reference in a new issue