2019-07-08 23:04:07 +08:00
|
|
|
<div class="{% if customcss %}{{ customcss }}{% else %}row d-flex align-items-center mt-4 mb-4 pt-2 pb-2{% endif%}">
|
2019-07-05 20:58:20 +08:00
|
|
|
|
|
|
|
{% if bodyleft %}
|
|
|
|
|
|
|
|
<div class="col-12 col-md-6">
|
|
|
|
|
|
|
|
{% if md %}
|
|
|
|
|
|
|
|
{{ body | markdown | safe }}
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
|
|
|
|
{{ body | safe }}
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2019-07-08 23:04:07 +08:00
|
|
|
<div class="col-12 col-md-6 pt-3 pt-sm-0">
|
2019-07-05 20:58:20 +08:00
|
|
|
|
2019-07-08 23:04:07 +08:00
|
|
|
<div class="card {% if shadow %}shadow{% endif %}">
|
2019-07-05 20:58:20 +08:00
|
|
|
|
2019-07-10 00:46:27 +08:00
|
|
|
{% if src %}
|
2019-07-08 23:04:07 +08:00
|
|
|
<img src="{{ get_url(path=src, cachebust=true) }}" alt="{{ alt }}" width="100%" class="card-img-top img-fluid">
|
2019-07-10 00:46:27 +08:00
|
|
|
{% endif %}
|
2019-07-05 20:58:20 +08:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
|
|
|
|
<div class="col-12 col-md-6 order-2 order-md-1">
|
|
|
|
|
2019-07-08 23:04:07 +08:00
|
|
|
<div class="card {% if shadow %}shadow{% endif %}">
|
2019-07-05 20:58:20 +08:00
|
|
|
|
2019-07-10 00:46:27 +08:00
|
|
|
{% if src %}
|
2019-07-08 23:04:07 +08:00
|
|
|
<img src="{{ get_url(path=src, cachebust=true) }}" alt="{{ alt }}" width="100%" class="card-img-top img-fluid">
|
2019-07-10 00:46:27 +08:00
|
|
|
{% endif %}
|
2019-07-05 20:58:20 +08:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-12 col-md-6 order-1 order-md-2">
|
|
|
|
|
|
|
|
{% if md %}
|
|
|
|
|
|
|
|
{{ body | markdown | safe }}
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
|
|
|
|
{{ body | safe }}
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
</div>
|