{% macro home_item(title, url_id, description='') -%}
    <div class="col-12 col-sm-6 col-lg-6 col-xl-6 p-3">
        <div class="card">
            <a href="{{ url(url_id) }}">
                <div class="card-body">
                    <h4 class="card-title">{{ title }}</h4>
                    <p class="card-text">{{ description }}</p>
                </div>
            </a>
        </div>
    </div>
{% endmacro %}

{% macro home_item_with_icon(icon, icon_size='fa-4x', url_id='', link='', title='') -%}
    <div class="col-12 col-sm-6 col-lg-6 col-xl-6 p-3">
        <div class="card">
            {% if url_id %}
                <a href="{{ url(url_id) }}">
                    <div class="card-body">
                        <h4 class="card-title text-center"><i class="fa {{ icon }} {{ icon_size }}"
                                                              aria-hidden="true"></i></h4>
                        {% if title %}
                            <p class="text-center">{{ title }}</p>
                        {% endif %}
                    </div>
                </a>
            {% else %}
                <a href="{{ link }}">
                    <div class="card-body">
                        <h4 class="card-title text-center"><i class="fa {{ icon }} {{ icon_size }}"
                                                              aria-hidden="true"></i></h4>
                        {% if title %}
                            <p class="text-center">{{ title }}</p>
                        {% endif %}
                    </div>
                </a>
            {% endif %}
        </div>
    </div>
{% endmacro %}

{% macro link_item(title, url, description='') -%}
    <div class="col-12 col-sm-6 col-lg-6 col-xl-6 p-3">
        <div class="card">
            <a href="{{ url }}">

                <div class="card-body">
                    <h4 class="card-title">{{ title }}</h4>
                    <p class="card-text">{{ description }}</p>
                </div>
            </a>
        </div>
    </div>
{% endmacro %}