web2019/templates/shortcodes/layout_card.html

24 lines
472 B
HTML

<div class="{% if css %}{{ css }}{% else %}col-12 col-md-4{% endif %}">
<div class="card shadow mb-4">
{% if src %}
<div class="px-auto pt-4">
<img src="{{ get_url(path=src, cachebust=true) }}" width="40px">
</div>
{% endif %}
<div class="card-body">
{% if title %}
<div class="card-title">
<h5 class="mb-0">{{ title }}</h5>
</div>
{% endif %}
{{ body | markdown | safe }}
</div>
</div>
</div>