{# ================================================================================ Social Share Component ================================================================================ Share buttons for blog posts and other content. Requires share_url() and icon() to be available. Usage: {{ social_share(page, page_href) }} ================================================================================ #} {% def social_share(page, page_href) %} {% let platforms = [ {'id': 'twitter', 'label': 'Twitter', 'icon': 'twitter-logo'}, {'id': 'linkedin', 'label': 'LinkedIn', 'icon': 'linkedin-logo'}, {'id': 'facebook', 'label': 'Facebook', 'icon': 'facebook-logo'}, {'id': 'reddit', 'label': 'Reddit', 'icon': 'reddit-logo'}, {'id': 'email', 'label': 'Email', 'icon': 'envelope-simple'} ] %}

{{ t('blog.share_post', default='Share this post') }}

{% for platform in platforms %} {% end %}
{% end %}