{# ================================================================================ Blog Share Dropdown Component ================================================================================ Share dropdown for blog posts - Copy URL + social links. Rendered with Chirp UI dropdown classes while retaining the packaged copy hook. No LLM actions. Usage: {{ blog_share_dropdown(page, page_href) }} ================================================================================ #} {% from 'chirpui/dropdown.html' import dropdown %} {% def blog_share_dropdown(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'} ] %} {% call dropdown(label=t('blog.share_post', default='Share this post'), cls='chirp-theme-blog-share') %} {% for platform in platforms %} {{ icon(platform.icon, size=16) }} {{ platform.label }} {% end %} {% end %} {% end %}