fix icon spacing in call to action
This commit is contained in:
parent
fba84938c8
commit
5622dc6b28
@ -23,7 +23,7 @@
|
|||||||
{% for button in call_to_action.buttons %}
|
{% for button in call_to_action.buttons %}
|
||||||
<a
|
<a
|
||||||
href="{{ button.href | default('#') }}"
|
href="{{ button.href | default('#') }}"
|
||||||
class="btn btn-{{ button.theme | default('primary') }} my-2 d-inline-flex"
|
class="btn btn-{{ button.theme | default('primary') }} my-2"
|
||||||
>
|
>
|
||||||
{% if button.icon %}
|
{% if button.icon %}
|
||||||
<i class="bi-{{ button.icon }}"></i>
|
<i class="bi-{{ button.icon }}"></i>
|
||||||
|
4
test.py
4
test.py
@ -53,8 +53,8 @@ template_vars = {
|
|||||||
"header": "This is a call to action",
|
"header": "This is a call to action",
|
||||||
"lead_text": "Some interesting text for the user",
|
"lead_text": "Some interesting text for the user",
|
||||||
"buttons": [
|
"buttons": [
|
||||||
{"href": "1"},
|
{"text": "something"},
|
||||||
{"href": "2", "theme": "danger"},
|
{"theme": "danger", "text": "something dangerous"},
|
||||||
{"href": "3", "theme": "warning", "icon": "exclamation-diamond-fill"},
|
{"href": "3", "theme": "warning", "icon": "exclamation-diamond-fill"},
|
||||||
{
|
{
|
||||||
"href": "3",
|
"href": "3",
|
||||||
|
Loading…
Reference in New Issue
Block a user