11ty-resume/src/_includes/partials/components/socials.liquid

19 lines
993 B
Plaintext

<ul class="list-inline socials-list {% if showLabel == true %}socials-list--label{% endif %}">
{% if socials %}
{% for social in socials %}
<li>
{% capture href %}{{ social.link }}{% endcapture %}
{% capture classes %}{{ social.icon }} {% if showLabel == true %}{{ position | default: "icon--left" }}{% endif %}{% endcapture %}
{% capture label %}{{ social.title }}{% endcapture %}
{% render 'partials/components/link', showLabel: showLabel, label: label, href: href, class: classes, target: "_blank" %}
</li>
{% endfor %}
{% if mail %}
<li>
{% capture href %}mailto:{{ mail }}{% endcapture %}
{% capture classes %}icon-mail {% if showLabel == true %}{{ position | default: "icon--left" }}{% endif %}{% endcapture %}
{% render 'partials/components/link', showLabel: showLabel, label: "Contactez moi par mail", href: href, class: classes, target: "_blank" %}
</li>
{% endif %}
{% endif %}
</ul>