From 2cab65dabdf676e14b3205c7b3e1eebd0de9f3e2 Mon Sep 17 00:00:00 2001 From: Yukiko Gannett Date: Tue, 27 Feb 2024 12:11:38 -0500 Subject: [PATCH 1/2] add a condition to check suggested page items --- .../_patterns/03-organisms/by-author/suggested-pages.twig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/patternlab/styleguide/source/_patterns/03-organisms/by-author/suggested-pages.twig b/packages/patternlab/styleguide/source/_patterns/03-organisms/by-author/suggested-pages.twig index 0d1adbc46c..4399e5f9dd 100644 --- a/packages/patternlab/styleguide/source/_patterns/03-organisms/by-author/suggested-pages.twig +++ b/packages/patternlab/styleguide/source/_patterns/03-organisms/by-author/suggested-pages.twig @@ -7,6 +7,7 @@

{{ suggestedPages.title }}{% if suggestedPages.titleContext %}  {{suggestedPages.titleContext}}{% endif %}

+ {% if suggestedPages.pages|length > 0 %}
    {% if suggestedPages.view == "guide" %} {% for page in suggestedPages.pages %} @@ -32,6 +33,7 @@ {% endfor %} {% endif %}
+ {% endif %} {% if suggestedPages.moreLinks %} {% set linkList = suggestedPages.moreLinks %} {% include "@organisms/by-author/link-list.twig" %} From a4cbbe8678bb6a16e731edd672507bdbc86cf7c5 Mon Sep 17 00:00:00 2001 From: Yukiko Gannett Date: Tue, 27 Feb 2024 12:19:50 -0500 Subject: [PATCH 2/2] add changelog for DP-31955 --- changelogs/DP-31955.yml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 changelogs/DP-31955.yml diff --git a/changelogs/DP-31955.yml b/changelogs/DP-31955.yml new file mode 100644 index 0000000000..ebc0a6a787 --- /dev/null +++ b/changelogs/DP-31955.yml @@ -0,0 +1,7 @@ + +Changed: + - project: Patternlab + component: Suggested Pages + description: Add a condition to check suggested page items. (#1886) + issue: DP-31955 + impact: Patch