This repository was archived by the owner on Jul 21, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff 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 />
Original file line number Diff line number Diff line change 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 />
You can’t perform that action at this time.
0 commit comments