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

Simpler organization chart

parent 45a5e268
No related branches found
No related tags found
No related merge requests found
......@@ -23,35 +23,39 @@
{{- range .persons -}}
{{ $person := site.GetPage (printf "/persons/%s" .slug) }}
<div>
{{- if (partial "GetTextFromHTML" .role) }}
<article class="person" itemscope itemtype="https://schema.org/Person">
<div class="description">
<h1 class="name" itemprop="name">
{{ if $with_link }}
<a href="{{ $person.Permalink }}" aria-label="{{ i18n "commons.more_aria" (dict "Title" $person.Title) }}">
<article class="person" itemscope itemtype="https://schema.org/Person">
<div class="description">
<h1 class="name" itemprop="name">
{{ if $with_link }}
<a href="{{ $person.Permalink }}" aria-label="{{ i18n "commons.more_aria" (dict "Title" $person.Title) }}">
{{ end }}
{{- partial "PrepareHTML" $person.Title -}}
{{- partial "PrepareHTML" $person.Title -}}
{{ if $with_link }}
</a>
{{ end }}
</h1>
<p itemprop="jobTitle">{{ partial "PrepareHTML" .role }}</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"
)}}
</a>
{{ end }}
</h1>
<p itemprop="jobTitle"></p>
{{- if (partial "GetTextFromHTML" .role) }}
{{ partial "PrepareHTML" .role }}
{{- else if partial "GetTextFromHTML" $person.Params.description_short }}
{{- partial "PrepareHTML" $person.Params.description_short -}}
{{ else if (partial "GetTextFromHTML" $person.Content) }}
{{- partial "GetTruncateContent" $person.Content -}}
{{ end -}}
</div>
</article>
{{ else }}
{{ partial "persons/person.html" $person }}
{{ 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>
</article>
</div>
{{- end -}}
</div>
......
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