use different way for bootstrap icons

This commit is contained in:
2023-12-28 22:07:38 -06:00
parent 8a28bd5ce2
commit 26acdaf66a
3 changed files with 6 additions and 17 deletions

View File

@@ -25,16 +25,10 @@
href="{{ button.href | default('#') }}"
class="btn btn-{{ button.theme | default('primary') }} my-2 d-inline-flex"
>
{{ button.text }}
{% if button.icon %}
<svg
class="bi"
width="{{ button.icon.width }}"
height="{{ button.icon.height }}"
>
<use xlink:href="#{{ button.icon.name }}"/>
</svg>
<i class="bi-{{ button.icon }}"></i>
{% endif %}
{{ button.text }}
</a>
{% endfor %}
</p>