forked from spiffe/spiffe.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
presentations.html
45 lines (44 loc) · 1.64 KB
/
presentations.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{{- $presentations := .Site.Data.presentations }}
{{- $category := .Get "category" }}
{{- range sort $presentations "weight" }}
{{- if eq .category $category }}
<div class="presentation">
<div class="thumbnail">
{{- if isset . "youtube" }}
<a href="{{ .link }}">
<img src="https://img.youtube.com/vi/{{ .youtube }}/1.jpg" width="120" height="90"/>
</a>
{{- else if isset . "thumbnail" }}
<a href="{{ .link }}">
<img src="{{ .thumbnail }}" width="120" height="90"/>
</a>
{{- end }}
</div>
<div>
<div>
<a href="{{ .link }}"><strong>{{.title }}</strong></a>
{{- if isset . "organizations" }}
({{ .organizations }})
{{- end }}
</div>
<div class="description">
{{- if isset . "description" }}
<p>{{ .description }}</p>
{{- end}}
<p>
<i> {{- if isset . "venue" }}
Presented {{- if isset . "presenters" }} by {{ .presenters }} {{- end }}
{{- else }}
By {{ .presenters }}
{{- end }}
{{- if isset . "venue" }} at {{ .venue }} {{- end }}
{{- if isset . "publication" }} in {{ .publication }} {{- end }}
{{- if isset . "date" }} on {{ .date }} {{- end }}.</i>
</p>
</div>
</div>
<div style="clear: both; margin-bottom: 10px;"></div>
</div>
{{- end }}
{{- end }}