{%- 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/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 -%} {% capture toggler_related %} {{ site.i18n.close }} {% endcapture %} {% capture toggled %}
{% endcapture %} {%- include_cached toggler/toggler.html id=id extra=extra toggled_content=toggled -%}