Skip to content

Commit

Permalink
Merge branch 'main' into fix/3178-incorrect-link-in-address-pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
precious-onyenaucheya-ons authored May 13, 2024
2 parents 55c6057 + 948f29d commit a40379c
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/components/share-page/_macro.njk
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<{{ titleTag }} class="ons-u-fs-r--b ons-u-mb-xs">{{ params.title }}</{{ titleTag }}>
{% endif %}

{% set list = [] %}
{% if params.facebook and params.facebook == true %}
{% set facebook =
{
Expand All @@ -17,8 +16,6 @@
"target": '_blank'
}
%}

{% set list = (list.push(facebook), list) %}
{% endif %}
{% if params.twitter and params.twitter == true %}
{% set twitter =
Expand All @@ -30,17 +27,13 @@
"target": '_blank'
}
%}

{% set list = (list.push(twitter), list) %}

{% endif %}

{{
onsList({
"variants": 'inline',
"iconPosition": 'before',
"iconSize": params.iconSize | default("xxl"),
"itemsList": list
"itemsList": [facebook, twitter]
})
}}
{% endmacro %}

0 comments on commit a40379c

Please sign in to comment.