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

[validator] balises `<p>` doublées (#767)

parent cd992a14
No related branches found
No related tags found
No related merge requests found
......@@ -31,8 +31,6 @@
{{ end -}}
{{ if $main_summary }}
{{/* SHOULD BE FIXED WITH ORTHOTYPO */}}
{{ $main_summary = printf "<p>%s</p>" $main_summary }}
{{ $block_class = printf "%s %s" $block_class "with-description" }}
{{ end }}
{{ if $options.image }}
......
......@@ -19,13 +19,13 @@
{{ end }}
{{ $heading_tag.close }}
{{ if and $options.summary (or $role $person.Params.summary) }}
<p itemprop="jobTitle">
<div itemprop="jobTitle">
{{ if (partial "GetTextFromHTML" $role) }}
{{ partial "PrepareHTML" $role }}
<p>{{ partial "PrepareHTML" $role }}</p>
{{ else if $person.Params.summary }}
{{ safeHTML $person.Params.summary }}
{{ partial "PrepareHTML" $person.Params.summary }}
{{ end }}
</p>
</div>
{{ end }}
</div>
{{ if $options.image }}
......
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