diff --git a/layouts/partials/blocks/templates/organization_chart.html b/layouts/partials/blocks/templates/organization_chart.html index 1d3a03d0ff2ee5ee28e246460105fb030dcdb2b0..131ef46c735c2061457d8ef9db3fa850e4f10779 100644 --- a/layouts/partials/blocks/templates/organization_chart.html +++ b/layouts/partials/blocks/templates/organization_chart.html @@ -3,6 +3,7 @@ {{- $title := .block.title -}} {{- with .block.data -}} {{- $with_link := .with_link -}} + {{- $with_photo := .with_photo -}} <section class="block block-organization_chart{{ if $title }} block-with-title{{ end }}" id="block-{{ $position }}"> <div class="container"> <div class="block-content"> @@ -44,17 +45,19 @@ {{ end -}} </p> </div> - <div class="avatar" itemprop="image"> - {{- if $person.Params.image }} - {{ partial "commons/image.html" - (dict - "image" $person.Params.image - "mobile" "80x80" - "tablet" "100x100" - "desktop" "255x255" - )}} - {{ end -}} - </div> + {{- if $with_photo }} + <div class="avatar" itemprop="image"> + {{- if $person.Params.image }} + {{ partial "commons/image.html" + (dict + "image" $person.Params.image + "mobile" "80x80" + "tablet" "100x100" + "desktop" "255x255" + )}} + {{ end -}} + </div> + {{ end -}} </article> </div> {{- end -}}