diff --git a/templates/macros.html.tera b/templates/macros.html.tera
index 49432656..3cce7285 100644
--- a/templates/macros.html.tera
+++ b/templates/macros.html.tera
@@ -1,7 +1,12 @@
{% macro post_card(article) %}
+ {% if article.author.display_name %}
+ {% set name = article.author.display_name %}
+ {% else %}
+ {% set name = article.author.username %}
+ {% endif %}
{% endmacro post_card %}
diff --git a/templates/posts/details.html.tera b/templates/posts/details.html.tera
index 5c658d37..52e71b30 100644
--- a/templates/posts/details.html.tera
+++ b/templates/posts/details.html.tera
@@ -8,9 +8,15 @@
{{ blog.title }}
{% endblock header %}
+{% if author.display_name %}
+ {% set name = author.display_name %}
+{% else %}
+ {% set name = author.username %}
+{% endif %}
+
{% block content %}
- Written by {{ author.display_name }}
+ Written by {{ name }}
—
{{ date | date(format="%B %e, %Y") }}
@@ -49,8 +55,13 @@
Comments
{% for comment in comments %}
+ {% if comment.author.display_name %}
+ {% set comment_author_name = comment.author.display_name %}
+ {% else %}
+ {% set comment_author_name = comment.author.username %}
+ {% endif %}
diff --git a/templates/users/details.html.tera b/templates/users/details.html.tera
index d225a300..51d6f94e 100644
--- a/templates/users/details.html.tera
+++ b/templates/users/details.html.tera
@@ -1,14 +1,20 @@
{% extends "base" %}
{% import "macros" as macros %}
+{% if user.display_name %}
+ {% set name = user.display_name %}
+{% else %}
+ {% set name = user.username %}
+{% endif %}
+
{% block title %}
-{{ user.display_name }}
+{{ name }}
{% endblock title %}
{% block content %}
- {{ user.display_name }}
+ {{ name }}
{% if user.is_admin %}
Admin
{% endif %}
diff --git a/templates/users/followers.html.tera b/templates/users/followers.html.tera
index 5d6a956e..595f6ae1 100644
--- a/templates/users/followers.html.tera
+++ b/templates/users/followers.html.tera
@@ -1,13 +1,19 @@
{% extends "base" %}
+{% if user.display_name %}
+ {% set name = user.display_name %}
+{% else %}
+ {% set name = user.username %}
+{% endif %}
+
{% block title %}
-{{ user.display_name }}'s Followers
+{{ name }}'s Followers
{% endblock title %}
{% block content %}
- {{ user.display_name }}
+ {{ name }}
{% if user.is_admin %}
Admin
{% endif %}
@@ -21,8 +27,13 @@
Followers
{% for follower in followers %}
+ {% if follower.display_name %}
+ {% set follower_name = follower.display_name %}
+ {% else %}
+ {% set follower_name = follower.username %}
+ {% endif %}
-
+
{{ follower.summary | safe }}
{% endfor %}