diff --git a/packages/web-twig/docs/components/DocsSection/DocsSection.twig b/packages/web-twig/docs/components/DocsSection/DocsSection.twig index 98366b57cf..08cb8c7fe3 100644 --- a/packages/web-twig/docs/components/DocsSection/DocsSection.twig +++ b/packages/web-twig/docs/components/DocsSection/DocsSection.twig @@ -29,9 +29,13 @@ {% endif %} {% if _hasStack %} - - {{ _renderedContent }} - + {%- embed '@spirit/DocsStack/DocsStack.twig' with { props: { + stackAlignment: _stackAlignment, + }, _renderedContent } only -%} + {%- block content -%} + {{- _renderedContent -}} + {%- endblock -%} + {%- endembed -%} {% else %} {{ _renderedContent }} {% endif %}