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