diff --git a/source/shared/_article.haml b/source/shared/_article.haml index 118bdd695d49be05245476a6742ff6f173054b41..951e98d51ae7ea058c5bda68c743e44f5205f533 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