blog/themes/cmd/layout/includes/cards.njk
thisLight 781759d545 move cmd to nunjucks & update hexo to 6.0.0
Other changes:
* minor fix to the display for code blocks
* remove floating when hover on cards
* replace the list of tags and categories to the index page one
* small change on the title of tags' and categories' pages
2021-12-31 18:07:40 +08:00

24 lines
754 B
Text

{% 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 %}