make the font awesome class if/else more readable
This commit is contained in:
parent
a8d8188003
commit
6a0ebc70e5
1 changed files with 7 additions and 1 deletions
|
@ -124,7 +124,13 @@
|
||||||
<ul class="social">
|
<ul class="social">
|
||||||
{% for name, link in SOCIAL %}
|
{% for name, link in SOCIAL %}
|
||||||
<li><a class="sc-{{ name }}" href="{{ link }}" target="_blank">
|
<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>
|
</a></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in a new issue