{% macro content_url(item, kind) %}/{{ kind }}/{{ item['slug'] or item['uid'] }}{% endmacro %}

{% macro modal(modal_id, title, wide=false) %}
<div class="modal-overlay" id="{{ modal_id }}">
    <div class="card modal-card{% if wide %} modal-card-wide{% endif %}">
        <div class="modal-header">
            <h3>{{ title }}</h3>
            <button type="button" class="modal-close btn-ghost btn-icon modal-close-btn" aria-label="Close">&times;</button>
        </div>
        {{ caller() }}
    </div>
</div>
{% endmacro %}
