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

fix

parent 94bb1cec
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@
&--grid
.gallery
align-items: end
align-items: baseline
@include in-page-with-sidebar
@include grid(3, desktop, half($grid-gutter), half($grid-gutter))
@include in-page-without-sidebar
......@@ -41,10 +41,9 @@
grid-gap: half($grid-gutter-sm) !important
&--with-text
figure
picture
margin-bottom: $spacing0
&:after
content: ' ' // This is used to allow align baseline without figcaption
figcaption
&::after
content: ' '
&--carousel
overflow: hidden
......
......@@ -33,11 +33,11 @@
{{ if not site.Params.image_sizes.design_system.lightbox.disabled }}
</a>
{{ end }}
{{ if .text }}
<figcaption>
{{- partial "PrepareHTML" .text -}}
{{ if .text }}
{{- partial "PrepareHTML" .text -}}
{{ end }}
</figcaption>
{{ end }}
</figure>
{{- end -}}
{{ end }}
......
......@@ -28,8 +28,8 @@
{{ if and $show_descriptions .Params.summary }}
{{ if site.Params.pages.index.truncate_description }}
<p>{{ partial "GetTruncateContent" ( dict
"text" .Params.summary
"length" site.Params.pages.index.truncate_description
"text" .Params.summary
"length" site.Params.pages.index.truncate_description
) }}</p>
{{ else }}
<p>{{ partial "PrepareText" .Params.summary }}</p>
......
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