n use_social = false -%}

{%- for network in site.data.social.networks -%}
{%- if network.username != nil or network.use -%}
{%- assign use_social = true -%}
{%- endif -%}
{%- endfor -%}

{%- if use_social -%}
<svg xmlns="http://www.w3.org/2000/svg" class="hidden">
    {%- for network in site.data.social.networks -%}
    {%- if network.username != nil or network.use -%}
    {{ network.icon | raw }}
    {%- endif -%}
    {%- endfor -%}
</svg>
{%- endif -%}
