Skip to content
Snippets Groups Projects
Commit 2e35379c authored by alexisben's avatar alexisben
Browse files

handle subtitle in hero

parent 77ffc76c
No related branches found
No related tags found
No related merge requests found
......@@ -57,14 +57,14 @@
@include media-breakpoint-up(desktop)
$negative-margin-bottom: px2rem(150)
.content
h1
> h1, > hgroup
width: col(9)
&--with-image
margin-bottom: $negative-margin-bottom
.content
display: flex
justify-content: space-between
h1
> h1, > hgroup
width: col(7)
figure
width: col(5)
......@@ -80,7 +80,7 @@
.breadcrumb
padding-right: 50px
.content
h1
> h1, > hgroup
width: col(8)
figure
margin-top: calc(-#{$spacing3} - #{$spacing2})
......
......@@ -9,7 +9,15 @@
{{ partial "header/breadcrumbs.html" .context }}
{{- end -}}
<div class="content">
<h1>{{ partial "PrepareHTML" .title }}</h1>
{{- if .subtitle -}}
<hgroup>
<h1>{{ partial "PrepareHTML" .title }}</h1>
<p>{{ partial "PrepareHTML" .subtitle }}</p>
</hgroup>
{{- else -}}
<h1>{{ partial "PrepareHTML" .title }}</h1>
{{- end -}}
</hgroup>
{{- if .image }}
<figure>
{{ partial "commons/image.html"
......
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