This commit is contained in:
2020-12-11 22:30:28 +00:00
12 changed files with 53 additions and 22 deletions

View File

@@ -27,15 +27,23 @@
<div>
{{ post.subtitle|default_if_none:"&nbsp;"|tags_to_url }}
</div>
{% if post.author %}
<div class="article-author"><a href="{% url 'member' post.author %}">
<img src="{{ author_image }}" alt="" /> {{ post.author }}
{% if author_image and author %}
<div class="article-author">
<a href="{% url 'member' author.id %}">
<img src="{{ author_image }}" alt="" /> {{ author.firstname }}
</a>
</div>
{% elif post.author %}
<div class="article-author">
<a href="">
<img src="" alt="" /> {{ post.author }}
</a>
</div>
{% else %}
<div class="article-author"><a href="">
<div class="article-author">
<a href="">
<img src="" alt="" />
{{ post.author }}</a>
</a>
</div>
{% endif %}
</div>