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

block feature credit

parent 6229032d
No related branches found
No related tags found
No related merge requests found
......@@ -8,18 +8,21 @@
margin-top: $spacing3
h3
margin-bottom: $spacing0
picture
figure
order: -1
margin-bottom: $spacing1
img
display: block
margin: auto
figcaption
@include meta
margin-top: $spacing0
text-align: right
@include media-breakpoint-up(md)
@include in-page-with-sidebar
li
flex-direction: row
picture
figure
width: calc(#{col(2, 8)} + #{half($grid-gutter)})
flex-shrink: 0
margin-right: half($grid-gutter)
......
......@@ -67,7 +67,7 @@
> a, span
@include meta
display: block
padding: calc(#{$spacing0} * 0.5) $spacing0
padding: half($spacing0) $spacing0
&:last-child
a, span
padding-right: 0
......
......@@ -29,11 +29,18 @@
<p>{{ partial "PrepareText" .description }}</p>
</div>
{{- if .image -}}
{{- partial "commons/image.html"
(dict
"image" .image
"sizes" site.Params.image_sizes.blocks.features
) -}}
<figure>
{{- partial "commons/image.html"
(dict
"image" .image
"sizes" site.Params.image_sizes.blocks.features
) -}}
{{- if .credit -}}
<figcaption>
{{ partial "PrepareText" .credit }}
</figcaption>
{{- end -}}
</figure>
{{- end -}}
</li>
{{ end -}}
......
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