forked from M-Labs/web2019
Egor Savkin
8fc3f3086d
Only to some, where it is not invasive and can be useful. If the microdata will be successful in SE rankings, it can be expanded more. Signed-off-by: Egor Savkin <es@m-labs.hk>
51 lines
1.2 KiB
HTML
51 lines
1.2 KiB
HTML
<div class="{% if css %}{{ css }}{% else %}col-12 col-md-4{% endif %} mb-4">
|
|
|
|
<div class="{% if not rmcard %}card shadow{% endif %} h-100" itemscope itemtype="https://schema.org/Thing">
|
|
|
|
{% if not imgbottom %}
|
|
|
|
{% if src %}
|
|
<div class="px-auto pt-4">
|
|
<img src="{{ get_url(path=src, cachebust=true) }}" width="40px" itemprop="image">
|
|
</div>
|
|
{% endif %}
|
|
|
|
<div class="card-body">
|
|
{% if title %}
|
|
<div class="card-title" itemprop="name">
|
|
<h5 class="mb-0">{{ title }}</h5>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<div {% if sameheight %}style="min-height: {{ sameheight }}px"{% endif%} itemprop="description">
|
|
{{ body | markdown | safe }}
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
<div class="card-body">
|
|
{% if title %}
|
|
<div class="card-title" itemprop="name">
|
|
<h5 class="mb-0">{{ title }}</h5>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<span itemprop="description">{{ body | markdown | safe }}</span>
|
|
|
|
</div>
|
|
|
|
{% if src %}
|
|
<div class="">
|
|
<img src="{{ get_url(path=src, cachebust=true) }}" class="card-img img-fluid" itemprop="image">
|
|
</div>
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div> |