@@ -13,6 +13,28 @@ <h2>Program</h2>
1313 {{- if eq (index (split (.Permalink | relURL) "/") 2) $e.name -}}
1414 {{- $.Scratch.Set "base_file_name" .File.BaseFileName -}}
1515 {{- $.Scratch.Set .File.BaseFileName .Title -}}
16+ {{- with .Params.vimeo -}}
17+ {{- $.Scratch.Set (printf "%s-video_link" ($.Scratch.Get "base_file_name")) (printf "https://player.vimeo.com/video/%s" .) }}
18+ {{- end -}}
19+ {{- with .Params.youtube -}}
20+ {{- $.Scratch.Set (printf "%s-video_link" ($.Scratch.Get "base_file_name")) (printf "https://www.youtube.com/embed/%s" .) }}
21+ {{- end -}}
22+ {{- with .Params.speakerdeck -}}
23+ {{- $.Scratch.Set (printf "%s-slides_link" ($.Scratch.Get "base_file_name")) . }}
24+ {{- end -}}
25+ {{- with .Params.slideshare -}}
26+ {{- $.Scratch.Set (printf "%s-slides_link" ($.Scratch.Get "base_file_name")) . }}
27+ {{- end -}}
28+ {{- with .Params.googleslides -}}
29+ {{- $.Scratch.Set (printf "%s-slides_link" ($.Scratch.Get "base_file_name")) (printf "https://docs.google.com/presentation/d/%s" .) }}
30+ {{- end -}}
31+ {{- with .Params.pdf -}}
32+ {{- $.Scratch.Set (printf "%s-slides_link" ($.Scratch.Get "base_file_name")) . }}
33+ {{- end -}}
34+ {{- with .Params.slides -}}
35+ {{- $.Scratch.Set (printf "%s-slides_link" ($.Scratch.Get "base_file_name")) . }}
36+ {{- end -}}
37+
1638 {{- if isset .Params "speakers" -}}
1739 {{- if ne .Params.speakers "" -}}
1840 {{- $.Scratch.Set "speaker_len" (.Params.speakers | len) -}}
@@ -89,7 +111,10 @@ <h5 class="mb-0">
89111 {{ $.Scratch.Get (printf "%s-speaker" .title) }}
90112 -
91113 {{ $.Scratch.Get .title }}
92- </ a > < br />
114+ </ a >
115+ {{- with ($.Scratch.Get (printf "%s-video_link" .title)) -}}< a href ="{{ . }} "> < i class ="fa fa-video-camera " aria-hidden ="true "> </ i > </ a > {{- end -}}
116+ {{- with ($.Scratch.Get (printf "%s-slides_link" .title)) -}}< a href ="{{ . }} "> < i class ="fa fa-file-powerpoint-o " aria-hidden ="true "> </ i > </ a > {{- end -}}
117+ < br />
93118 {{- else if eq .type "ignite" -}}
94119 {{ .title }}
95120 <!-- do ignite stuff here -->
@@ -104,7 +129,9 @@ <h5 class="mb-0">
104129 < li >
105130 < a href ="/events/{{ $e.name}}/program/{{ .title }} "> {{ $.Scratch.Get (printf "%s-speaker" .title) }}
106131 -
107- {{ $.Scratch.Get .title }}</ a >
132+ {{ $.Scratch.Get .title }}</ a >
133+ {{- with ($.Scratch.Get (printf "%s-video_link" .title)) -}}< a href ="{{ . }} "> < i class ="fa fa-video-camera " aria-hidden ="true "> </ i > </ a > {{- end -}}
134+ {{- with ($.Scratch.Get (printf "%s-slides_link" .title)) -}}< a href ="{{ . }} "> < i class ="fa fa-file-powerpoint-o " aria-hidden ="true "> </ i > </ a > {{- end -}}
108135 </ li >
109136 {{- else -}}
110137 < li >
0 commit comments