From df2b26f9b5dd9fe0490765e892105f9f83039746 Mon Sep 17 00:00:00 2001 From: Arthur Baghdasaryan Date: Mon, 22 Jun 2026 13:47:09 +0400 Subject: [PATCH 1/2] DP-47028: Clean calculation logic for Related Organizations to avoid log noise --- .../source/_patterns/03-organisms/by-author/link-list.twig | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/patternlab/styleguide/source/_patterns/03-organisms/by-author/link-list.twig b/packages/patternlab/styleguide/source/_patterns/03-organisms/by-author/link-list.twig index ac78e76383..907a2af91a 100644 --- a/packages/patternlab/styleguide/source/_patterns/03-organisms/by-author/link-list.twig +++ b/packages/patternlab/styleguide/source/_patterns/03-organisms/by-author/link-list.twig @@ -40,8 +40,9 @@ {% endblock %} {% else %} - {% set length = linkList.links|length/2 %} - {% set half = length|round(0,'ceil') %} + {% set total = linkList.links|length %} + {% set half = (total / 2)|round(0,'ceil') %} + {% set remainder = total - half %}