Skip to content
Snippets Groups Projects
Unverified Commit 04a1c0fd authored by Sébastien Gaya's avatar Sébastien Gaya Committed by GitHub
Browse files

Passage de la weight Pagefind des H1 de 7 à 10 (#481)


Co-authored-by: default avataralexisben <alex@noesya.coop>
parent c1665071
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,11 @@
{{ $button := .button | default .context.Params.header_cta }}
{{ $title_attribute := "" | safeHTMLAttr }}
{{ if site.Params.search.active }}
{{ $title_attribute = "data-pagefind-weight='10'" | safeHTMLAttr }}
{{ end }}
{{ if not $subtitle }}
{{ if and (eq site.Params.summary.position "hero") $summary }}
{{ $subtitle = $summary }}
......@@ -29,7 +34,7 @@
<div class="hero-text">
{{ if or $subtitle $description }}
<hgroup>
<h1>{{ partial "PrepareHTML" .title }}</h1>
<h1 {{ $title_attribute }}>{{ partial "PrepareHTML" .title }}</h1>
{{ if $subtitle }}
<p {{ if $subtitle_is_summary }} class="lead" {{ end }}>{{ partial "PrepareHTML" $subtitle }}</p>
{{ end }}
......@@ -38,7 +43,7 @@
{{ end }}
</hgroup>
{{ else }}
<h1>{{ partial "PrepareHTML" .title }}</h1>
<h1 {{ $title_attribute }}>{{ partial "PrepareHTML" .title }}</h1>
{{ end }}
{{ with $button }}
......
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