{# Social Feed Widget - Tabbed Bluesky/Mastodon #} {% if (blueskyFeed and blueskyFeed.length) or (mastodonFeed and mastodonFeed.length) %} {% set id = homepageConfig.identity if (homepageConfig and homepageConfig.identity) else {} %} {% set socialLinks = id.social if (id.social is defined) else site.social %} {% set blueskyProfileUrl = "" %} {% set mastodonProfileUrl = "" %} {% for link in socialLinks %} {% if not blueskyProfileUrl and (link.icon == "bluesky" or "bsky.app/profile/" in link.url) %} {% set blueskyProfileUrl = link.url %} {% endif %} {% if not mastodonProfileUrl and (link.icon == "mastodon" or "@" in link.url) %} {% set mastodonProfileUrl = link.url %} {% endif %} {% endfor %} {% if not blueskyProfileUrl and site.feeds.bluesky %} {% set blueskyProfileUrl = "https://bsky.app/profile/" + site.feeds.bluesky %} {% endif %} {% if not mastodonProfileUrl and site.feeds.mastodon.instance and site.feeds.mastodon.username %} {% set mastodonProfileUrl = "https://" + site.feeds.mastodon.instance + "/@" + site.feeds.mastodon.username %} {% endif %} {% set defaultSocialTab = "mastodon" if mastodonFeed and mastodonFeed.length else "bluesky" %}

Social Activity

{# Tab buttons #}
{% if blueskyFeed and blueskyFeed.length %} {% endif %} {% if mastodonFeed and mastodonFeed.length %} {% endif %}
{# Bluesky Tab Content #} {% if blueskyFeed and blueskyFeed.length %} {% endif %} {# Mastodon Tab Content #} {% if mastodonFeed and mastodonFeed.length %} {% endif %}
{% endif %}