From 122c8e0fa7fac4280ff2333cc8ba2df70d66581b Mon Sep 17 00:00:00 2001
From: Arnaud Levy <contact@arnaudlevy.com>
Date: Thu, 25 Apr 2024 14:22:06 +0200
Subject: [PATCH] fix

---
 config.yaml                       | 6 ++++++
 layouts/partials/posts/posts.html | 6 +++++-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/config.yaml b/config.yaml
index d6feac23..8935646a 100644
--- a/config.yaml
+++ b/config.yaml
@@ -81,6 +81,12 @@ params:
       show_description: true
       truncate_description: 200 # Set to 0 to disable truncate
       layout: list # grid | list
+      options:
+        hide_image: false
+        hide_summary: false
+        hide_category: false
+        hide_author: false
+        hide_date: false
     share_links:
       facebook: true
       twitter: true
diff --git a/layouts/partials/posts/posts.html b/layouts/partials/posts/posts.html
index f3304c7f..cc77cf17 100644
--- a/layouts/partials/posts/posts.html
+++ b/layouts/partials/posts/posts.html
@@ -3,6 +3,10 @@
     <p>{{ i18n "categories.no_post" }}</p>
   {{ end }}
   {{ range .Paginator.Pages }}
-    {{ partial "posts/post.html" (dict "post" . )}}
+    {{  partial "posts/post.html" 
+        (dict 
+          "post" .
+          "options" site.Params.posts.index.options 
+        )}}
   {{ end }}
 </div>
-- 
GitLab