Skip to content
This repository was archived by the owner on Jul 21, 2019. It is now read-only.

Commit 26f8349

Browse files
committed
Fix issue with default speaker image
1 parent 8646078 commit 26f8349

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

layouts/speaker/single.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ <h3>{{ .Title }} at {{ $e.city }} {{$e.year}}</h3>
3232
</div>
3333
</div>
3434
<div class = "col-md-3 offset-md-1">
35-
{{- if isset .Params "image" -}}
36-
{{- if ne .Params.image "" -}}
37-
<img src = "{{ (printf "events/%s/speakers/%s" $e.name .Params.image) |absURL }}" class="img-fluid" alt="{{ .Title }}"/><br />
35+
{{- with .Params.image -}}
36+
{{- if ne . "" -}}
37+
<img src = "{{ (printf "events/%s/speakers/%s" $e.name .) |absURL }}" class="img-fluid" alt="{{ $.Title }}"/><br />
3838
{{- end -}}
3939
{{- else -}}
4040
<img src = {{ "img/speaker-default.jpg" | absURL }} class="img-fluid" alt="{{ .Title }}"/><br />

layouts/speakers/single.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
<div class="col-lg-3 col-md-6">
1111

1212
<a href = "{{ .Permalink | absURL }}">
13-
{{- if isset .Params "image" -}}
14-
{{- if ne .Params.image "" -}}
15-
<img src = "{{ (printf "events/%s/speakers/%s" $e.name .Params.image) | absURL}}" class="speakers-page img-fluid" alt="{{ .Title }}"/><br />
13+
{{- with .Params.image -}}
14+
{{- if ne . "" -}}
15+
<img src = "{{ (printf "events/%s/speakers/%s" $e.name .) | absURL}}" class="speakers-page img-fluid" alt="{{ $.Title }}"/><br />
1616
{{- end -}}
1717
{{- else -}}
1818
<img src = "{{"img/speaker-default.jpg" | absURL }}" class="speakers-page img-fluid" alt="{{ .Title }}"/><br />

0 commit comments

Comments
 (0)