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

Rich text dans les blocs de fonctionnalités et de définitions (#664)

parent f8015659
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@
{{ $id := printf "block-%d-element-%d" $block_index $index }}
<details id="{{$id}}" itemscope itemtype="https://schema.org/DefinedTerm">
<summary itemprop="name" aria-controls="#{{ $id }}" aria-expanded="false">{{ $element.title | safeHTML }}</summary>
<p itemprop="description">{{ $element.description | safeHTML }}</p>
<div itemprop="description">{{ partial "PrepareHTML" $element.description }}</div>
</details>
{{ end -}}
</div>
......
......@@ -18,13 +18,13 @@
<li>
<div>
{{- $heading_tag := partial "GetHeadingTag" (dict
"level" $block.ranks.children
"attributes" "class='name' itemprop='name'"
"level" $block.ranks.children
"attributes" "class='name'"
) -}}
{{ $heading_tag.open -}}
{{ .title | safeHTML }}
{{ $heading_tag.close -}}
<p>{{ .description | safeHTML }}</p>
<div>{{ partial "PrepareHTML" .description }}</div>
</div>
{{- if .image -}}
<figure role="figure" {{- with or .alt .credit }} aria-label="{{ . | plainify }}" {{ 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