{%- macro icon_link_nav_item(url, icon, name) -%}
  {%- if url | length > 2 %}
        <li class="nav-item">
          <a class="nav-link" href="{{ url }}" rel="noopener" target="_blank" title="{{ _(name) }}">
            <span><i class="{{ icon }}"></i></span>
            <label class="sr-only">{{ _(name) }}</label>
          </a>
        </li>
  {%- endif -%}
{%- endmacro -%}

<ul id="navbar-icon-links" class="navbar-nav" aria-label="{{ _(theme_icon_links_label) }}">
{%- block icon_link_shortcuts -%}
{{ icon_link_nav_item(theme_github_url, "sst-github", "GitHub") -}}
{% endblock -%}
{%- for icon_link in theme_icon_links -%}
{{ icon_link_nav_item(icon_link["url"], icon_link["icon"], icon_link["name"]) -}}
{%- endfor %}
</ul>
