diff --git a/components/accordion-container/accordion-container.twig b/components/accordion-container/accordion-container.twig index 16161c7745e261e97a850a9835c60273be2c7090..5f9149ec1d37e3e0822c0b0415961b88ecd489ab 100644 --- a/components/accordion-container/accordion-container.twig +++ b/components/accordion-container/accordion-container.twig @@ -1,4 +1,4 @@ -
+
{% block accordion_content %} {% embed 'mercury:collapsible-section' with { diff --git a/components/anchor/anchor.twig b/components/anchor/anchor.twig index c7262fb682bb56acbcf766b221bad7cd507003be..a134857dc5163b2dd7bc597c2f6464928470eff8 100644 --- a/components/anchor/anchor.twig +++ b/components/anchor/anchor.twig @@ -1,4 +1,4 @@ - + {{ include( diff --git a/components/badge/badge.twig b/components/badge/badge.twig index 7b3230186954961d0c6031b4c2fdbb2a01991476..0fe30c507483ccc5976b68c7fbcdb7baff59017f 100644 --- a/components/badge/badge.twig +++ b/components/badge/badge.twig @@ -24,7 +24,7 @@ |filter(v => v is not empty) %} - + {% if icon is not empty %}{{ include('@mercury/components/icon/icon.twig') }}{% endif %} {{ label }} diff --git a/components/blockquote/blockquote.twig b/components/blockquote/blockquote.twig index 9a7f70acaeb2a33da82458f14cade2960efeacab..6b015aab5c73ad37ebf9ed827b6a674204b59470 100644 --- a/components/blockquote/blockquote.twig +++ b/components/blockquote/blockquote.twig @@ -1,8 +1,8 @@ {% set classes = ['blockquote', 'hg:flex hg:flex-col hg:gap-4'] %} -{% set cite_attr = cite_url and cite_url != 'No URL' ? 'cite="' ~ cite_url ~ '"' : '' %} +{% set attributes = cite_url and cite_url != 'No URL' ? attributes.setAttribute('cite', cite_url) : attributes %} -
+

{{ text }}

diff --git a/components/branding/branding.twig b/components/branding/branding.twig index 58cc06d927a8bcdd1393549d4be7136091fc6e1c..a8ab8e417f99b242194c59346726b1fbb4e233cf 100644 --- a/components/branding/branding.twig +++ b/components/branding/branding.twig @@ -1,7 +1,7 @@ {# We attach the library in-case you need to style further. #} {{ attach_library('mercury/branding') }} - + {% block branding %} {{ site_name }} {% endblock %} diff --git a/components/breadcrumb/breadcrumb.twig b/components/breadcrumb/breadcrumb.twig index 8000c923b4aa5cb49c032ee96e35f6934a372429..a78bd66f1aeb5bdfd04267d2a904b8997e65b5b3 100644 --- a/components/breadcrumb/breadcrumb.twig +++ b/components/breadcrumb/breadcrumb.twig @@ -1,8 +1,7 @@ {# Breadcrumb Component - Tailwind CSS #} {% if breadcrumb %} {% set needs_truncation = (breadcrumb|length) > 3 %} - -