From 1a2a1917c3cbc631c45e91793d6885a2f2d540bf Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Mon, 2 Jan 2023 12:26:44 +0100 Subject: [PATCH] consider with_photos in organization_chart --- .../blocks/templates/organization_chart.html | 25 +++++++++++-------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/layouts/partials/blocks/templates/organization_chart.html b/layouts/partials/blocks/templates/organization_chart.html index 1d3a03d0..131ef46c 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 -}} -- GitLab