talks_shortcode #1

Merged
NapoleonDynamite merged 2 commits from talks_shortcode into master 2024-02-08 20:19:22 +00:00
Showing only changes of commit b274c9d490 - Show all commits

View file

@ -26,12 +26,24 @@ An exploration from the chips on the PCB to how Linux makes the phone work. We'l
{{ 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>Subtitle:</strong> {{ . }}<br>
{{ end }}
{{ end }}
{{ if isset . "speakers" }}
{{ $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>Date:</strong> {{ .date }}<br>
<strong>URL:</strong> <a href="{{ .url }}">{{ .url }}</a><br> <strong>URL:</strong> <a href="{{ .url }}">{{ .url }}</a><br>
<strong>Description:</strong> {{ .description }}<br> <strong>Description:</strong> {{ .description }}<br><br>
<br>
</li> </li>
{{ end }} {{ end }}
{{ end }} {{ end }}