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
No related tags found
No related merge requests found
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
{{- $title := .block.title -}} {{- $title := .block.title -}}
{{- with .block.data -}} {{- with .block.data -}}
{{- $with_link := .with_link -}} {{- $with_link := .with_link -}}
{{- $with_photo := .with_photo -}}
<section class="block block-organization_chart{{ if $title }} block-with-title{{ end }}" id="block-{{ $position }}"> <section class="block block-organization_chart{{ if $title }} block-with-title{{ end }}" id="block-{{ $position }}">
<div class="container"> <div class="container">
<div class="block-content"> <div class="block-content">
...@@ -44,17 +45,19 @@ ...@@ -44,17 +45,19 @@
{{ end -}} {{ end -}}
</p> </p>
</div> </div>
<div class="avatar" itemprop="image"> {{- if $with_photo }}
{{- if $person.Params.image }} <div class="avatar" itemprop="image">
{{ partial "commons/image.html" {{- if $person.Params.image }}
(dict {{ partial "commons/image.html"
"image" $person.Params.image (dict
"mobile" "80x80" "image" $person.Params.image
"tablet" "100x100" "mobile" "80x80"
"desktop" "255x255" "tablet" "100x100"
)}} "desktop" "255x255"
{{ end -}} )}}
</div> {{ end -}}
</div>
{{ end -}}
</article> </article>
</div> </div>
{{- end -}} {{- 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