This commit is contained in:
2020-09-13 08:22:45 +00:00
parent c0285001d5
commit 0b05b7d513
8 changed files with 73 additions and 81 deletions

View File

@@ -48,8 +48,16 @@ def tags(request, tag=""):
(job_names[idx], active_members[idx], tag + "#" + slug_list[idx])
)
author_image = None
if featured_post:
post_author = Member.all_members.filter(nickname=featured_post.author).first()
if post_author:
author_image = post_author.image['avatar'].url
context = {
"posts": posts,
"author_image": author_image,
"featured_post": featured_post,
"members": members,
"tags_list": None,