From 87500e62c44dae06214ab8d8ab5f3f20b38768f3 Mon Sep 17 00:00:00 2001
From: Olivia206 <olivia.simonet@mmibordeaux.com>
Date: Tue, 16 May 2023 12:52:56 +0200
Subject: [PATCH] fixed posts block

---
 assets/sass/_theme/blocks/posts.sass |  4 ++--
 layouts/partials/posts/post.html     | 12 +++++-------
 2 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/assets/sass/_theme/blocks/posts.sass b/assets/sass/_theme/blocks/posts.sass
index 2531a07e..0d7ce820 100644
--- a/assets/sass/_theme/blocks/posts.sass
+++ b/assets/sass/_theme/blocks/posts.sass
@@ -81,10 +81,10 @@
 
             @include in-page-without-sidebar
                  article
-                    padding-bottom: $spacing3
                     border-bottom: 1px solid $color-border
-                    position: relative
                     gap: $grid-gutter
+                    padding-bottom: $spacing3
+                    position: relative
                     .media
                         width: col(3)
                     .post-content
diff --git a/layouts/partials/posts/post.html b/layouts/partials/posts/post.html
index 3c4fbf0f..7fec0769 100644
--- a/layouts/partials/posts/post.html
+++ b/layouts/partials/posts/post.html
@@ -48,18 +48,16 @@
 
 
   </div>
-  {{- if .Params.image -}}
-    <div class="media">
+  <div class="media">
+    {{- if .Params.image -}}
       {{- partial "commons/image.html"
             (dict
               "image"    .Params.image
               "sizes"    site.Params.image_sizes.sections.posts.item
             ) -}}
-    </div>
-  {{- else if site.Params.posts.default_image -}}
-    <div class="media">
+    {{- else if site.Params.posts.default_image -}}
       {{- partial "commons/image-default.html" -}}
-    </div>
-  {{- end -}}
+    {{- end -}}
+  </div>
 </article>
 {{ end }}
\ No newline at end of file
-- 
GitLab