diff --git a/assets/sass/_theme/blocks/posts.sass b/assets/sass/_theme/blocks/posts.sass
index 2531a07e075fcd4de262cea3aaef323f559a7a3a..0d7ce82014e374e6b77cdda0f44808fbd0a139d3 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 3c4fbf0f442aa26658578ed1e8696c710401ed10..7fec07699e877c0a46fe4b351d7b0717ff2cc540 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