diff --git a/layouts/media/single.html b/layouts/media/single.html index 6578601..613820d 100644 --- a/layouts/media/single.html +++ b/layouts/media/single.html @@ -22,59 +22,70 @@ - {{ range .Params.Videos }} -
- -
- {{ end }} - -
- {{ .Content }} -
- - {{ $hasGoodSpeaker := false }} - {{ range .Params.Speakers }} - {{ if or .bio .image }} - {{ $hasGoodSpeaker = true }} - {{ end }} - {{ end }} - {{ if $hasGoodSpeaker }} -

About the speaker{{ if (gt (len .Params.Speakers) 1) }}s{{ end }}

- {{ range .Params.Speakers }} -
-
-
{{ .name }}
- {{ if .bio }} -
- {{ .bio | markdownify }} -
- {{ end }} +
+
+ {{ range .Params.Videos }} +
+
- {{ if .image }} - {{ $imageurl := resources.Get .image }} - {{ if $imageurl}} -
+ {{ end }} +
+
+
+ {{ .Content }} +
+ + {{ $hasGoodSpeaker := false }} + {{ range .Params.Speakers }} + {{ if or .bio .image }} + {{ $hasGoodSpeaker = true }} + {{ end }} + {{ end }} + {{ if $hasGoodSpeaker }} +
+

About the speaker{{ if (gt (len .Params.Speakers) 1) }}s{{ end }}

+
+ {{ range .Params.Speakers }} +
+
+
{{ .name }}
+ {{ if .bio }} +
+ {{ .bio | markdownify }} +
+ {{ end }} +
+ {{ if .image }} + {{ $imageurl := resources.Get .image }} + {{ if $imageurl}} +
+ {{ end }} + {{ end }} +
+ {{ end }} +
+
+ {{ end }} + +
+ {{ range .Params.Videos }} + {{ if .download_link }} + Download video: {{ .title }} {{ end }} {{ end }}
- {{ end }} - {{ end }} - - {{ range .Params.Videos }} - {{ if .download_link }} - Download video: {{ .title }} - {{ end }} - {{ end }} +
+
{{ end }}