Skip to content
Snippets Groups Projects
Commit 1a2a1917 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

consider with_photos in organization_chart

parent 78104a09
No related branches found
Tags v3.0.7
No related merge requests found
......@@ -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 -}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment