From 6e4264b7fdf1aef1550c0eb2e778addd898121a5 Mon Sep 17 00:00:00 2001
From: Jeffrey Phillips Freeman <freemo@gmail.com>
Date: Tue, 21 Mar 2017 23:33:32 -0400
Subject: [PATCH] fixed using gravatar in articles.

---
 source/shared/_article.haml | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/source/shared/_article.haml b/source/shared/_article.haml
index 118bdd6..951e98d 100644
--- a/source/shared/_article.haml
+++ b/source/shared/_article.haml
@@ -8,12 +8,11 @@
           %time.post-date{datetime: article.date.strftime('%Y-%m-%d')}
             = article.date.strftime(blog_settings.date_format)
         %li
-          -#{{#if image}}
-          -#%a.author-image{:href => gravatar(24), :style => 'background-image: url( gravatar(24) )'}
-          -#  %span.hidden {{name}}'s Picture
-          -#{{else}}
-          %i.fa.fa-user
-          -#{{/if}}
+          - if gravatar?
+            %a.author-image{href: author_path, style: "background-image: url(#{gravatar})"}
+              %span.hidden {{name}}'s Picture
+          - else
+            %i.fa.fa-user
           %a{href: author_path}= blog_author.name
 
         %li
@@ -22,4 +21,4 @@
             #{tags(article)}
 
   %section.post-content
-    = article.body
\ No newline at end of file
+    = article.body
-- 
GitLab