Skip to content
Snippets Groups Projects
Commit 7b0e9258 authored by alexisben's avatar alexisben
Browse files

cleanup

parent bb37ef42
No related branches found
No related tags found
No related merge requests found
{{- $breadcrumb_is_after_hero := eq site.Params.breadcrumb.position "after-hero" -}}
{{ $subtitle := "" }}
{{- $summary := .Params.summary | safeHTML -}}
{{ if and (eq site.Params.summary.position "hero") $summary }}
{{ $subtitle = $summary }}
{{ end }}
<header class="hero {{ if $breadcrumb_is_after_hero -}} hero--no-margin {{- end }}">
<div class="container">
{{- if eq site.Params.breadcrumb.position "hero-start" -}}
{{ partial "header/breadcrumbs.html" . }}
{{- end -}}
<div class="content">
{{- if $subtitle -}}
<hgroup>
<h1>{{ partial "PrepareHTML" .Title }}</h1>
<p class="lead">{{ partial "PrepareHTML" $subtitle }}</p>
</hgroup>
{{- else -}}
<h1>{{ partial "PrepareHTML" .Title }}</h1>
{{- end -}}
{{ if .Params.image }}
<div class="avatar">
{{ partial "commons/image.html"
(dict
"image" .Params.image
"sizes" site.Params.image_sizes.sections.persons.hero_single
)}}
</div>
{{ end }}
</div>
{{- if eq site.Params.breadcrumb.position "hero-end" -}}
{{ partial "header/breadcrumbs.html" . }}
{{- end -}}
</div>
</header>
{{- if $breadcrumb_is_after_hero -}}
<div class="container breadcrumb-container">
{{ partial "header/breadcrumbs.html" . }}
</div>
{{- end -}}
\ No newline at end of file
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