{# The Linebreak here are intentional due to tab bugs #}
---
accounts:
  name: Online Presence
  description: Discover {{ 'our' if service_provider.type == 'legal' else 'my' }} online presence.
  icon:
    class: fa-solid fa-users
  children:
  - name: Publishing Channels
    description: Platforms where I share content.
    icon:
      class: fas fa-newspaper

{% if ["mastodon", "bluesky"] | any_in(group_names) %}  

    children:
    - name: Microblogs
      description: Stay updated with {{ 'our' if service_provider.type == 'legal' else 'my' }} microblogs.
      icon:
        class: fa-solid fa-pen-nib
      children:
{% if service_provider.contact.mastodon is defined and service_provider.contact.mastodon != "" %}


      - name: Mastodon
        description: Follow {{ 'our' if service_provider.type == 'legal' else 'my' }} updates on Mastodon.
        icon:
          class: fa-brands fa-mastodon
        url: "{{ web_protocol }}://{{ service_provider.contact.mastodon.split('@')[2] }}/@{{ service_provider.contact.mastodon.split('@')[1] }}"
        identifier: "{{service_provider.contact.mastodon}}"
        iframe: {{ applications | get_features_iframe('mastodon') }}

{% endif %}
{% if service_provider.contact.bluesky is defined and service_provider.contact.bluesky != "" %}


      - name: Bluesky
        description: Follow {{ 'our' if service_provider.type == 'legal' else 'my' }} on Bluesky.
        icon:
          class: fa-brands fa-bluesky
        alternatives:
        - link: accounts.publishingchannels.microblogs.mastodon
        identifier: "{{service_provider.contact.bluesky}}"

{% endif %}
{% endif %}
{% if service_provider.contact.pixelfed  is defined and service_provider.contact.pixelfed  != "" %}

    - name: Pictures
      description: Explore {{ 'our' if service_provider.type == 'legal' else 'my' }} photo gallery on Pixelfed.
      icon:
          class: fa-solid fa-camera
      identifier: "{{service_provider.contact.pixelfed}}"
      url: "{{ web_protocol }}://{{ service_provider.contact.pixelfed.split('@')[2] }}/@{{ service_provider.contact.pixelfed.split('@')[1] }}"
      iframe: {{ applications | get_features_iframe('pixelfed') }}

{% endif %}
{% if service_provider.contact.peertube  is defined and service_provider.contact.peertube  != "" %}


    - name: Peertube
      description: Discover {{ 'our' if service_provider.type == 'legal' else 'my' }} videos on Peertube.
      icon:
        class: fa-solid fa-video
      identifier: "{{service_provider.contact.peertube}}"
      url: "{{ web_protocol }}://{{ service_provider.contact.peertube.split('@')[2] }}/@{{ service_provider.contact.peertube.split('@')[1] }}"
      iframe: {{ applications | get_features_iframe('peertube') }}

{% endif %}
{% if service_provider.contact.wordpress is defined and service_provider.contact.wordpress != "" %}


    - name: Blog
      description: Read {{ 'our' if service_provider.type == 'legal' else 'my' }} articles and stories.
      icon:
        class: fa-solid fa-blog
      identifier: "{{service_provider.contact.wordpress}}"
      url: "{{ web_protocol }}://{{ service_provider.contact.wordpress.split('@')[2] }}/@{{ service_provider.contact.wordpress.split('@')[1] }}"
      iframe: {{ applications | get_features_iframe('wordpress') }}

{% endif %}
{% if service_provider.contact.source_code is defined and service_provider.contact.source_code != "" %}

    
    - name: Our Code
      description: Explore {{ 'our' if service_provider.type == 'legal' else 'my' }} code.
      icon:
        class: fa-solid fa-code
      url: "{{service_provider.legal.source_code}}"

{% endif %}
{% if service_provider.contact.friendica is defined and service_provider.contact.friendica != "" %}


  - name: Social Network
    description: Visit {{ 'our' if service_provider.type == 'legal' else 'my' }} friendica profile
    icon:
      class: fas fa-network-wired
    identifier: "{{service_provider.contact.friendica}}"
    url: "{{ web_protocol }}://{{ service_provider.contact.friendica.split('@')[2] }}/@{{ service_provider.contact.friendica.split('@')[1] }}"
    iframe: {{ applications | get_features_iframe('friendica') }}

{% endif %}

  - link: navigation.header.contact

cards:
{{ portfolio_cards | to_nice_yaml(indent=2) }}

platform:
  titel:    {{service_provider.platform.titel}}
  subtitel: {{service_provider.platform.subtitel}}
  logo:
    source: {{service_provider.platform.logo}}
  favicon:
    source: {{service_provider.platform.favicon}}
company:
  titel: {{service_provider.company.titel}}
  subtitel: {{service_provider.company.subtitel}}
  logo:
    source: {{service_provider.company.logo}}
  address:
{{ service_provider.company.address | to_nice_yaml(indent=4) | indent(4, true) }}
  imprint_url: {{service_provider.legal.imprint}}
navigation:
  header:
    children:
    - link: accounts.publishingchannels.children
    - name: Contact
      description: Get in touch with {{ 'us' if service_provider.type == 'legal' else 'me' }} 
      icon:
          class: fa-solid fa-envelope
      children:

{% if service_provider.contact.email is defined %}

      - name: Email
        description: Send {{ 'us' if service_provider.type == 'legal' else 'me' }} an email
        icon:
          class: fa-solid fa-envelope
        url: mailto:{{service_provider.contact.email}}
        identifier: {{service_provider.contact.email}}

{% endif %}
{% if service_provider.contact.phone is defined %}

      - name: Mobile
        description: Call {{ 'us' if service_provider.type == 'legal' else 'me' }}
        icon:
          class: fa-solid fa-phone
        url: "tel:{{service_provider.contact.phone}}"
        identifier: "{{service_provider.contact.phone}}"
        target: _top

{% endif %}
{% if service_provider.contact.matrix is defined %}

      - name: Matrix
        description: Chat with {{ 'us' if service_provider.type == 'legal' else 'me' }} on Matrix
        icon:
          class: fa-solid fa-cubes
        identifier: "{{service_provider.contact.matrix}}"

{% endif %}

{% include 'footer_menu.yaml.j2' %}