site/themes/hugo-theme-console/layouts/shortcodes/talks.html

16 lines
517 B
HTML
Raw Normal View History

2024-02-08 18:27:45 +00:00
{{ $json := getJSON "data/talks.json" }}
<ul>
{{ range $json.talks }}
<li>
<h2>{{ .title }}</h2>
<p><strong>Subtitle:</strong> {{ .subtitle }}</p>
<p><strong>Speakers:</strong> {{ range .speakers }}{{ . }}, {{ end }}</p>
<p><strong>Location:</strong> {{ .location }}</p>
<p><strong>URL:</strong> <a href="{{ .url }}">{{ .url }}</a></p>
<p><strong>Liked:</strong> {{ .liked }}</p>
<p><strong>Attended:</strong> {{ .attended }}</p>
</li>
{{ end }}
</ul>