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

[A11Y] Retrait des balises vides dans les blocs (#560)

parent 64c21f7a
No related branches found
Tags v3.1.2
No related merge requests found
......@@ -22,7 +22,9 @@
<link itemprop="url" href="{{ .url }}">
<a itemprop="relatedLink" href="{{ .url }}" title="{{ $link_title }}" {{ if $isExternal -}} target="_blank" rel="noopener" {{- end }}><span itemprop="name">{{- $title -}}</span></a>
<p>{{ .description | safeHTML }}</p>
{{ with .description }}
<p>{{ . | safeHTML }}</p>
{{ end }}
</div>
{{- if .image -}}
<div class="media">
......
......@@ -17,14 +17,12 @@
</a>
{{ end }}
{{ $heading_tag.close }}
{{ if $options.summary }}
{{ if and $options.summary (or $person.Params.summary $person.Params.summary) }}
<p itemprop="jobTitle">
{{ if (partial "GetTextFromHTML" .role) }}
{{ partial "PrepareHTML" .role }}
{{ else if partial "GetTextFromHTML" $person.Params.summary }}
{{ partial "PrepareHTML" $person.Params.summary }}
{{ else if partial "GetTextFromHTML" $person.Content }}
{{ partial "GetTruncateContent" ( dict "text" $person.Content ) }}
{{ end }}
</p>
{{ 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