WIP: 2024-refactor #1

Draft
c0de wants to merge 52 commits from 2024-refactor into master
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 5622dc6b28 - Show all commits

View File

@ -23,7 +23,7 @@
{% for button in call_to_action.buttons %}
<a
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 %}
<i class="bi-{{ button.icon }}"></i>

View File

@ -53,8 +53,8 @@ template_vars = {
"header": "This is a call to action",
"lead_text": "Some interesting text for the user",
"buttons": [
{"href": "1"},
{"href": "2", "theme": "danger"},
{"text": "something"},
{"theme": "danger", "text": "something dangerous"},
{"href": "3", "theme": "warning", "icon": "exclamation-diamond-fill"},
{
"href": "3",