Skip to content
Snippets Groups Projects
Unverified Commit af1a79c7 authored by Olivia Simonet's avatar Olivia Simonet Committed by GitHub
Browse files

Changement de .Content à .Params.biography dans les personnes (#622)

parent e095c36c
No related branches found
No related tags found
No related merge requests found
......@@ -109,6 +109,7 @@ params:
link: true
single:
backlinks: false
truncate_description: 200
posts:
default_image: false
date_format: ":date_long"
......
......@@ -18,10 +18,15 @@
</a>
{{ end }}
{{ $heading_tag.close }}
{{ if and $options.summary (or $role $person.Params.summary) }}
{{ if and $options.summary (or $person.Params.biography $role $person.Params.summary) }}
<p itemprop="jobTitle">
{{ if (partial "GetTextFromHTML" $role) }}
{{ partial "PrepareHTML" $role }}
{{ else if (partial "GetTextFromHTML" $person.Params.biography) }}
{{ partial "GetTruncateContent" ( dict
"text" $person.Params.biography
"length" site.Params.persons.single.truncate_description
)}}
{{ else if partial "GetTextFromHTML" $person.Params.summary }}
{{ partial "PrepareHTML" $person.Params.summary }}
{{ end }}
......
......@@ -42,14 +42,14 @@
{{ end }}
<div class="informations">
{{ if .Content }}
{{ if .Params.biography }}
<div class="biography">
{{ partial "persons/summary.html" (dict
"context" .
) }}
{{ if (partial "GetTextFromHTML" .Content) }}
{{ if (partial "GetTextFromHTML" .Params.biography) }}
<div class="rich-text">
{{ partial "PrepareHTML" .Content }}
{{ partial "PrepareHTML" .Params.biography }}
</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