<footer class="footer">
  <div class="footer__inner">
    <div class="footer__brand">
      <a href="{{ '/' | relative_url }}" class="footer__logo">
        <div>
          <span class="footer__name">{{ site.title }}</span>
          <span class="footer__tagline">{{ site.description }}</span>
        </div>
      </a>
      <p class="footer__legal">
        © <span id="year">{{ site.time | date: "%Y" }}</span> {{ site.title }}. All rights reserved.
      </p>
    </div>
    <div class="footer__links">
      <div>
        <p class="footer__label">Site</p>
        {% for item in site.nav_links %}
        {% assign href = item.url %}
        {% if item.children %}
        {% if item.label == 'Technology' and item.children.first %}
        {% assign href = item.children.first.url %}
        {% elsif item.label == 'Company' %}
        {% assign href = '/team/' %}
        {% endif %}
        {% endif %}
        {% assign is_external = false %}
        {% if href contains '://' or href contains 'mailto:' %}
        {% assign is_external = true %}
        {% endif %}
        <a href="{% unless is_external %}{{ href | relative_url }}{% else %}{{ href }}{% endunless %}" {% if is_external
          %}target="_blank" rel="noreferrer" {% endif %}>
          {{ item.label }}
        </a>
        {% endfor %}
      </div>
      <div>
        <p class="footer__label">Connect</p>
        {% for item in site.cta_links %}
        <a href="{{ item.url }}" {% if item.url contains '://' %}target="_blank" rel="noreferrer" {% endif %}>
          {{ item.label }}
        </a>
        {% endfor %}
      </div>
    </div>
  </div>
</footer>