diff --git a/config.yaml b/config.yaml index d6feac23512d5be4669da460c4c7c2e3d4167ff1..8935646a018c2ce942a7f9abd2709e53a50a42cd 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 f3304c7f7a74ba95a78647d0ef7233213b13e7bc..cc77cf1771989ef245a06ed9df983a8a772c257e 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>