talks_shortcode #1
1 changed files with 22 additions and 10 deletions
|
@ -23,16 +23,28 @@ An exploration from the chips on the PCB to how Linux makes the phone work. We'l
|
||||||
<ul>
|
<ul>
|
||||||
{{ $currentLocation := . }}
|
{{ $currentLocation := . }}
|
||||||
{{ range $json.talks }}
|
{{ range $json.talks }}
|
||||||
{{ if eq .location $currentLocation }}
|
{{ if eq .location $currentLocation }}
|
||||||
<li>
|
<li>
|
||||||
<strong>Title:</strong> {{ .title }}<br>
|
<strong>Title:</strong> {{ .title }}<br>
|
||||||
<strong>Subtitle:</strong> {{ .subtitle }}<br>
|
{{ with .subtitle }}
|
||||||
<strong>Speaker:</strong> {{ .speaker }}<br>
|
{{ if ne . "" }}
|
||||||
<strong>Date:</strong> {{ .date }}<br>
|
<strong>Subtitle:</strong> {{ . }}<br>
|
||||||
<strong>URL:</strong> <a href="{{ .url }}">{{ .url }}</a><br>
|
{{ end }}
|
||||||
<strong>Description:</strong> {{ .description }}<br>
|
{{ end }}
|
||||||
<br>
|
{{ if isset . "speakers" }}
|
||||||
</li>
|
{{ $speakers := .speakers }}
|
||||||
|
{{ if ne (len $speakers) 0 }}
|
||||||
|
<strong>Speakers:</strong>
|
||||||
|
{{ range $index, $speaker := $speakers }}
|
||||||
|
{{ $speaker }}
|
||||||
|
{{ if ne $index (sub (len $speakers) 1) }}, {{ end }}
|
||||||
|
{{ end }}<br>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
<strong>Date:</strong> {{ .date }}<br>
|
||||||
|
<strong>URL:</strong> <a href="{{ .url }}">{{ .url }}</a><br>
|
||||||
|
<strong>Description:</strong> {{ .description }}<br><br>
|
||||||
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in a new issue