From d83bab6465c98e86299d30bf8e4c2602f6acaa29 Mon Sep 17 00:00:00 2001 From: Daniel Hladek Date: Sat, 3 Oct 2020 16:35:54 +0200 Subject: [PATCH] zz --- themes/mytheme/mytheme.yaml | 2 +- themes/mytheme/templates/partials/authorposts.html.twig | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/themes/mytheme/mytheme.yaml b/themes/mytheme/mytheme.yaml index fe60e5af..612dc605 100644 --- a/themes/mytheme/mytheme.yaml +++ b/themes/mytheme/mytheme.yaml @@ -21,6 +21,6 @@ params: sidebar: # params for the sidebar maxentries: 5 # maximum number of articles to display in "Popular" and "Latest" sections show: - categories: false # show Category list in the sidebar + categories: true # show Category list in the sidebar popular: true # show the Popular Articles sidebar latest: true # show the Latest Articles sidebar diff --git a/themes/mytheme/templates/partials/authorposts.html.twig b/themes/mytheme/templates/partials/authorposts.html.twig index dd0e3bb2..e84d6af9 100644 --- a/themes/mytheme/templates/partials/authorposts.html.twig +++ b/themes/mytheme/templates/partials/authorposts.html.twig @@ -13,10 +13,8 @@ {% set pages = taxonomy.findTaxonomy({'author': author}).order('date', 'desc') %} {% set tmplst = [] %}

{{ author }}

- -{% set pages = tmplst|slice(0,10) %} +{% set pages = tmplst|slice(0,maxcount) %}