diff --git a/src/_includes/macros/macros.njk b/src/_includes/macros/macros.njk index 028070178..3af7388e6 100644 --- a/src/_includes/macros/macros.njk +++ b/src/_includes/macros/macros.njk @@ -1,26 +1,14 @@ -{% macro imageWithMode(params) %} -
{{ params.alt }}
{{ params.alt }}
{% include "../documentation/mode-switch.njk" %} -{% endmacro %} +{% macro imageWithMode(params) %}
{{ params.alt }}
{{ params.alt }}
{% include "../documentation/mode-switch.njk" %}{% endmacro %} -{% macro imageOnGreyBackground(params) %} -
{{ params.alt }}
-{% endmacro %} +{% macro imageOnGreyBackground(params) %}
{{ params.alt }}
{% endmacro %} -{% macro imageSpec(params) %} -
{{ params.alt }}
-{% endmacro %} +{% macro imageSpec(params) %}
{{ params.alt }}
{% endmacro %} -{% macro principleImage(params) %} -
{{ params.alt }}
-{% endmacro %} +{% macro principleImage(params) %}
{{ params.alt }}
{% endmacro %} -{% macro webpImage(params) %} -
{{ params.alt }}
-{% endmacro %} +{% macro webpImage(params) %}
{{ params.alt }}
{% endmacro %} -{% macro svgImage(params) %} -
{{ params.alt }}
-{% endmacro %} +{% macro svgImage(params) %}
{{ params.alt }}
{% endmacro %} {% macro buttonGroup(params) %} {% if params.type == "link" %} @@ -54,8 +42,7 @@

{{ params.translations["variant-components"] }}

{% else %} -{% endif %} - +{% endif %} {% for sibling in params.collection %}{{ sibling.data.title}}{% endfor %} {% endmacro %} @@ -63,10 +50,7 @@ {% macro lynePlayground(params) %} {% set pattern = params.json %} - - -{% if pattern.content !== '' %} -

{{ params.translations["playground"] }}

+{% if pattern.content !== '' %}

{{ params.translations["playground"] }}

{{pattern.content | safe}} @@ -104,13 +88,11 @@ {% else %} {% endif %} - {% endmacro %} -{% macro lyneExamples(params) %} -

{{ params.translations["examples"] }}

+{% macro lyneExamples(params) %}

{{ params.translations["examples"] }}

{% set tag = params.tag %} {% set stories = params.stories %} {% for story, stor in stories %}