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">
{% for item in site.data.socials %}
<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 %}
{% assign dark = item.name | append: "_dark" %}
{% assign dark = item.name | downcase | append: "_dark" %}
{% else %}
{% assign dark = item.name %}
{% assign dark = item.name | downcase %}
{% endif %}
<img class="social-image social-image-dark" src="res/social/{{ dark }}.png" alt="Social icon" hidden>