1
0
Fork 0
web2019/templates/shortcodes/textimg.html

61 lines
1.1 KiB
HTML
Raw Normal View History

<div class="{% if customcss %}{{ customcss }}{% else %}row d-flex align-items-center mt-4 mb-4 pt-2 pb-2{% endif%}">
{% if bodyleft %}
<div class="col-12 col-md-6">
{% if md %}
{{ body | markdown | safe }}
{% else %}
{{ body | safe }}
{% endif %}
</div>
<div class="col-12 col-md-6 pt-3 pt-sm-0">
<div class="card {% if shadow %}shadow{% endif %}">
2019-07-10 00:46:27 +08:00
{% if src %}
<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 %}
</div>
</div>
{% else %}
<div class="col-12 col-md-6 order-2 order-md-1">
<div class="card {% if shadow %}shadow{% endif %}">
2019-07-10 00:46:27 +08:00
{% if src %}
<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 %}
</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>