diff --git a/_layouts/post.html b/_layouts/post.html
index 92482fe5..3242971b 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -19,7 +19,7 @@
{{page.title}}
{% for a in page.author %}
{% assign author_data = site.data.authors[a] %}
- {% if author_data.avatar != %}
+ {% if author_data.avatar != nil %}
{% else %}