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

handle event subtitle in hero

parent 121a24ee
No related branches found
Tags v7.2.6
No related merge requests found
.events__page .events__page
.hero
h1 span
display: block
color: $color-text-alt
.lead .lead
@include h3 @include h3
@include media-breakpoint-down(desktop) @include media-breakpoint-down(desktop)
......
{{- $title := or .Params.header_text .Title -}} {{- $title := or .Params.header_text .Title -}}
{{ with .Params.subtitle }}
{{- $title = printf "%s <span>%s</span>" $title . -}}
{{ end }}
{{- partial "header/hero.html" {{- partial "header/hero.html"
(dict (dict
"title" $title "title" $title
"image" .Params.image "image" .Params.image
"sizes" site.Params.image_sizes.sections.events.hero_single "sizes" site.Params.image_sizes.sections.events.hero_single
"context" . "context" .
) -}} ) -}}
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<p {{ if $subtitle_is_summary -}} class="lead" {{- end -}}>{{ partial "PrepareHTML" $subtitle }}</p> <p {{ if $subtitle_is_summary -}} class="lead" {{- end -}}>{{ partial "PrepareHTML" $subtitle }}</p>
{{- end -}} {{- end -}}
{{- if $description -}} {{- if $description -}}
<p class="h1">{{ partial "PrepareHTML" .description }}</p> <p>{{ partial "PrepareHTML" .description }}</p>
{{- end -}} {{- end -}}
</hgroup> </hgroup>
{{- else -}} {{- else -}}
......
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