make the font awesome class if/else more readable

This commit is contained in:
alxd 2018-10-07 12:50:49 +02:00
parent a8d8188003
commit 6a0ebc70e5

View file

@ -124,7 +124,13 @@
<ul class="social">
{% for name, link in SOCIAL %}
<li><a class="sc-{{ name }}" href="{{ link }}" target="_blank">
<i class="fa{% if name in ['envelope-open', 'rss'] %}s{% else %}b{% endif %} fa-{{ name }}"></i>
<i class="{% if name in ['envelope-open', 'rss'] %}
fas
{% else %}
fab
{% endif %}
fa-{{ name }}">
</i>
</a></li>
{% endfor %}
</ul>