{%- assign title = include.title | unescape -%} {%- assign text = include.description | strip_html | unescape -%} {%- assign url = site.url | append: "/" | append: include.url -%} {%- assign id = include.id | default: 'share' -%} {% capture label %} {{ site.i18n.share.text }} {% endcapture %} {% include_cached toggler_label.html id=id content=label %} {%- capture extra -%} data-controller="share" data-action="share#share" data-share-title-value="{{ title | escape }}" data-share-text-value="{{ text | escape }}" data-share-url-value="{{ url | escape }}" {%- endcapture -%} {%- include_cached toggler.html id=id extra=extra -%}
{% for share in site.i18n.share.items %}
{% include_cached share.html share=share url=include.url title=include.title description=text tags=include.tags %}
{% endfor %}