Browse Source

Use less fragile detection of FontAwesome classes

List of all possible styles:
https://fontawesome.com/how-to-use/on-the-web/referencing-icons/basic-use
main
Vitaly Potyarkin 3 years ago
parent
commit
8ad0dd7449
  1. 2
      alchemy/templates/include/header.html

2
alchemy/templates/include/header.html

@ -5,7 +5,7 @@
} -%}
{%- if icon in fa_special_icons -%}
{{ fa_special_icons[icon] }}
{%- elif icon.startswith("fa") -%}
{%- elif icon.split()|select("in", ["fab", "fas", "far", "fal", "fad"])|list -%}
{{ icon }}
{%- else -%}
fab fa-{{icon}}

Loading…
Cancel
Save