From 223167cefbee29103b9186acd7e9b841551f427b Mon Sep 17 00:00:00 2001
From: alexisben <alex@noesya.coop>
Date: Wed, 28 Dec 2022 16:18:18 +0100
Subject: [PATCH] add categories to post

---
 config.yaml                      | 4 ++++
 layouts/partials/posts/post.html | 3 +++
 2 files changed, 7 insertions(+)

diff --git a/config.yaml b/config.yaml
index f3cd69a5..c672579b 100644
--- a/config.yaml
+++ b/config.yaml
@@ -4,3 +4,7 @@ params:
     enable: true
     blank: true
     page: https://gdpr.eu/cookies/
+  posts:
+    list:
+      show_categories: false
+      truncate_description: false
\ No newline at end of file
diff --git a/layouts/partials/posts/post.html b/layouts/partials/posts/post.html
index e48b9bc2..6bc09496 100644
--- a/layouts/partials/posts/post.html
+++ b/layouts/partials/posts/post.html
@@ -6,6 +6,9 @@
       <p itemprop="articleBody">{{ partial "PrepareHTML" .Params.description_short }}</p>
     {{- end -}}
     <time itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02T15:04" }}">{{ .Date | time.Format ":date_long" }}</time>
+    {{ if $.Site.Params.posts.list.show_categories }}
+      {{- partial "posts/categories" . -}}
+    {{ end }}
   </div>
   <div class="media">
     {{- if .Params.image -}}
-- 
GitLab