downcase social image names
All checks were successful
Web/pipeline/head This commit looks good

This commit is contained in:
Ell 2021-07-09 02:28:09 +02:00
parent ce25a49e61
commit c62b03748b

View file

@ -9,12 +9,12 @@
<div id="social-list"> <div id="social-list">
{% for item in site.data.socials %} {% for item in site.data.socials %}
<a class="btn btn-light social-button rounded-0" href="{{ item.link }}"> <a class="btn btn-light social-button rounded-0" href="{{ item.link }}">
<img class="social-image social-image-light" src="res/social/{{ item.name }}.png" alt="Social icon"> <img class="social-image social-image-light" src="res/social/{{ item.name | downcase }}.png" alt="Social icon">
{% if item.darkIcon %} {% if item.darkIcon %}
{% assign dark = item.name | append: "_dark" %} {% assign dark = item.name | downcase | append: "_dark" %}
{% else %} {% else %}
{% assign dark = item.name %} {% assign dark = item.name | downcase %}
{% endif %} {% endif %}
<img class="social-image social-image-dark" src="res/social/{{ dark }}.png" alt="Social icon" hidden> <img class="social-image social-image-dark" src="res/social/{{ dark }}.png" alt="Social icon" hidden>