Support for displaying avatar and note on h-card
This commit is contained in:
parent
afcf101d09
commit
24c83674ba
1 changed files with 2 additions and 0 deletions
|
@ -2,10 +2,12 @@
|
||||||
{% block main %}
|
{% block main %}
|
||||||
<aside class="author">
|
<aside class="author">
|
||||||
<article class="h-card card p-author">
|
<article class="h-card card p-author">
|
||||||
|
{% if user.avatar %}<img class="card-img-top u-photo" src="{{ user.avatar.url }}" alt="{{ user.first_name }} {{ user.last_name }}" />{% endif %}
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h4 class="card-title p-name">
|
<h4 class="card-title p-name">
|
||||||
<span class="p-given-name">{{ user.first_name }}</span> <span class="p-family-name">{{ user.last_name }}</span>
|
<span class="p-given-name">{{ user.first_name }}</span> <span class="p-family-name">{{ user.last_name }}</span>
|
||||||
</h4>
|
</h4>
|
||||||
|
{% if user.note %}<p class="p-note">{{ user.note }}</p>{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card-footer">
|
<div class="card-footer">
|
||||||
|
|
Loading…
Reference in a new issue