Skip to content
Snippets Groups Projects
Unverified Commit b510911e authored by Alexis BENOIT's avatar Alexis BENOIT Committed by GitHub
Browse files

Correction de la liste des actualités (#629)

parent 7f51f85b
No related branches found
No related tags found
No related merge requests found
......@@ -23,11 +23,11 @@
display: flex
margin-bottom: $spacing-3
padding-bottom: $spacing-3
flex-direction: row
.post-title + p
margin-top: $spacing-2
@include media-breakpoint-up(desktop)
@include grid
flex-direction: row
margin-bottom: $spacing-5
padding-bottom: $spacing-5
.post-content
......@@ -35,6 +35,9 @@
.post-meta
> *
display: block
@include media-breakpoint-down(desktop)
flex: 1
margin-left: $spacing-2
.media
background: none
margin: 0
......@@ -42,6 +45,9 @@
width: 33.33333%
@include media-breakpoint-up(desktop)
grid-column: 1/4
&:empty
background: var(--color-background-alt)
aspect-ratio: 3/2
&, img
aspect-ratio: auto
@include media-breakpoint-up(desktop)
......
{{ $section_type := . }}
{{ $use_default := (index site.Params $section_type).default_image }}
{{ $image := index site.Data.website.default "image" }}
{{- $section_type := . -}}
{{- $use_default := (index site.Params $section_type).default_image -}}
{{- $image := index site.Data.website.default "image" -}}
{{ if and $use_default $image }}
{{- if and $use_default $image -}}
{{ with index site.Params.image_sizes.sections $section_type }}
{{ $sizes := .item }}
......@@ -12,4 +12,4 @@
"sizes" $sizes
) -}}
{{ end }}
{{ end }}
{{- end -}}
......@@ -71,7 +71,7 @@
</div>
{{ if $options.image }}
<div class="media">
{{- if and .Params.image -}}
{{- if .Params.image -}}
{{- partial "commons/image.html"
(dict
"image" .Params.image
......
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