<div class="social-links">

{% assign links = '' | split: '' %}
{% if site.social-links-order %}
    {% for link in site.social-links-order %}
        {% assign link-elem = include.links | where: "name", link %}
        {% assign links = links | concat: link-elem %}
    {% endfor %}
{% else %}
    {% assign links = include.links %}
{% endif %}

{% for link in links %}
    {% assign link-username = site[link.name] %}
    {% if link-username %}
    <a target="_blank" class="link" data-title="{{ link.url-prefix }}{{ link-username }}" href="{{ link.url-scheme | default: '//' }}{{ link.url-prefix }}{{ link-username }}">
        <svg class="icon icon-{{ link.icon | default: link.name }}"><use xlink:href="#icon-{{ link.icon | default: link.name }}"></use></svg>
    </a>
    {% endif %}
{% endfor %}
</div>

<div class="social-links">

{% assign links = '' | split: '' %}
{% if site.social-links-order %}
    {% for link in site.social-links-order %}
        {% assign link-elem = include.links | where: "name", link %}
        {% assign links = links | concat: link-elem %}
    {% endfor %}
{% else %}
    {% assign links = include.links %}
{% endif %}

{% for link in links %}
    {% assign link-username = site[link.name] %}
    {% if link-username %}
    <a target="_blank" class="link" data-title="{{ link.url-prefix }}{{ link-username }}" href="{{ link.url-scheme | default: '//' }}{{ link.url-prefix }}{{ link-username }}" rel="me">
        <svg class="icon icon-{{ link.icon | default: link.name }}"><use xlink:href="#icon-{{ link.icon | default: link.name }}"></use></svg>
    </a>
    {% endif %}
{% endfor %}
</div>

Add rel="me" attribute to social links (to support IndieAuth)
Add rel="me" attribute to social links (to support IndieAuth)
