Skip to content
Snippets Groups Projects
Commit 805eae63 authored by Clara Rigaud's avatar Clara Rigaud
Browse files

fixe breadcrumb

parent 488b7d55
No related branches found
No related tags found
No related merge requests found
{{ $breadcrumb_is_after_hero := eq site.Params.breadcrumb.position "after-hero" }}
{{ $display_breadcrumb := .Params.breadcrumb | default true }}
<header class="hero {{ if $breadcrumb_is_after_hero }} hero--no-margin {{ end }}">
<div class="container">
{{ if and $display_breadcrumb (eq site.Params.breadcrumb.position "hero-start") }}
{{ partial "header/breadcrumbs.html" }}
{{ if (eq site.Params.breadcrumb.position "hero-start") }}
{{ partial "header/breadcrumbs.html" . }}
{{ end }}
<div class="content">
{{ partial "programs/hero/text.html" . }}
......@@ -18,15 +16,15 @@
{{ partial "programs/hero/actions.html" . }}
</div>
{{ if and $display_breadcrumb (eq site.Params.breadcrumb.position "hero-end") }}
{{ if (eq site.Params.breadcrumb.position "hero-end") }}
<div class="container breadcrumb-container">
{{ partial "header/breadcrumbs.html" }}
{{ partial "header/breadcrumbs.html" . }}
</div>
{{ end }}
</header>
{{ if and $display_breadcrumb $breadcrumb_is_after_hero }}
{{ if $breadcrumb_is_after_hero }}
<div class="container breadcrumb-container">
{{ partial "header/breadcrumbs.html" }}
{{ partial "header/breadcrumbs.html" . }}
</div>
{{ 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