blog/themes/cmd/layout/includes/cards.njk

25 lines
754 B
Text
Raw Normal View History

{% macro Me(name, email, description) %}
<div class="card">
<div class="row" style="margin-bottom: 0">
<div class="col" style="padding: 12px; padding-left: 20px;">
<img class="circle responsive-img" src="{{ gravatar(email if email else 'example@foo.bar') }}"/>
</div>
<div class="col" style="padding-top: 12px; padding-left: 12px">
{% if name %}
<div class="row" style="margin-bottom: 0">
<h6>{{ name }}</h6>
</div>
{% endif %}
<div class="row" style="margin-bottom: 0">
<p>
{% if description %}
{{ description }}{% else %}Nothing to say.{% endif %}
</p>
</div>
</div>
</div>
</div>
{% endmacro %}