From 8a5fbed4108f32fd0af286d003abbe7fa797c485 Mon Sep 17 00:00:00 2001
From: alexisben <alex@noesya.coop>
Date: Tue, 8 Nov 2022 17:39:17 +0100
Subject: [PATCH] posts section

---
 assets/sass/_theme/sections/posts.sass | 2 ++
 layouts/partials/posts/post.html       | 5 ++++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/assets/sass/_theme/sections/posts.sass b/assets/sass/_theme/sections/posts.sass
index f8a3f4e9..100e1eb6 100644
--- a/assets/sass/_theme/sections/posts.sass
+++ b/assets/sass/_theme/sections/posts.sass
@@ -51,9 +51,11 @@
                             right: 0
                             top: 0
                         div:not(.media)
+                            h2,
                             p,
                             a
                                 max-width: col(6, 9)
+
     @else 
         .posts
             @include grid(1)
diff --git a/layouts/partials/posts/post.html b/layouts/partials/posts/post.html
index c2d37aad..53e1daaf 100644
--- a/layouts/partials/posts/post.html
+++ b/layouts/partials/posts/post.html
@@ -1,7 +1,10 @@
 <article class="post">
   <div>
     {{- $title := partial "PrepareHTML" .Title -}}
-    <p class="title"><a href="{{ .Permalink }}" title="{{ safeHTML (i18n "commons.more_aria" (dict "Title" $title)) }}">{{ $title }}</a></p>
+    <h2 class="h4"><a href="{{ .Permalink }}" title="{{ safeHTML (i18n "commons.more_aria" (dict "Title" $title)) }}">{{ $title }}</a></h2>
+    {{- if (partial "GetTextFromHTML" .Params.description_short) -}}
+      <p>{{ partial "PrepareHTML" .Params.description_short }}</p>
+    {{- end -}}
     <time datetime="{{ .Date.Format "2006-01-02T15:04" }}">{{ .Date | time.Format ":date_long" }}</time>
   </div>
   <div class="media">
-- 
GitLab