diff --git a/config.yaml b/config.yaml index f3cd69a55d47f72dd0cd238f6fb6d1adf712cb50..c672579b2241f770e7f8c851e3fd770be52efcec 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 e48b9bc2c8603316482432286d1e87a55024e94b..6bc09496a78026eff127765dfccb9bbce82d9218 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 -}}