diff --git a/app/liquid_tags/comment_tag.rb b/app/liquid_tags/comment_tag.rb index 756152066..6b92da1cb 100644 --- a/app/liquid_tags/comment_tag.rb +++ b/app/liquid_tags/comment_tag.rb @@ -31,12 +31,12 @@ class CommentTag < LiquidTagBase def render_twitter_and_github result = "" if @comment.user.twitter_username.present? - result += "" \ + result += "" \ +image_tag("/assets/twitter-logo.svg", class: "icon-img", alt: "twitter") + \ "" end if @comment.user.github_username.present? - result + "" \ + result + "" \ +image_tag("/assets/github-logo.svg", class: "icon-img", alt: "github") + \ "" end diff --git a/app/liquid_tags/user_tag.rb b/app/liquid_tags/user_tag.rb index 077a7fc47..a21b58ef7 100644 --- a/app/liquid_tags/user_tag.rb +++ b/app/liquid_tags/user_tag.rb @@ -53,7 +53,7 @@ class UserTag < LiquidTagBase def twitter_link if @user.twitter_username.present? <<-HTML - + #{image_tag('/assets/twitter-logo.svg', class: 'icon-img', alt: 'twitter')} #{@user.twitter_username} HTML @@ -63,7 +63,7 @@ class UserTag < LiquidTagBase def github_link if @user.github_username.present? <<-HTML - + #{image_tag('/assets/github-logo.svg', class: 'icon-img', alt: 'github')} #{@user.github_username} HTML diff --git a/app/views/articles/_markdown_form.html.erb b/app/views/articles/_markdown_form.html.erb index 6166537cc..6730d1ff3 100644 --- a/app/views/articles/_markdown_form.html.erb +++ b/app/views/articles/_markdown_form.html.erb @@ -108,10 +108,10 @@ By <%= @user.name %> <% if @user.twitter_username.present? %> - <%= icon("twitter","20") %> + <%= icon("twitter","20") %> <% end %> <% if @user.github_username.present? %> - <%= icon("github","20") %> + <%= icon("github","20") %> <% end %> <%= "on "+@article.published_at.strftime("%B %d, %Y") if @article.published_at %> diff --git a/app/views/articles/index.html.erb b/app/views/articles/index.html.erb index 896effc12..55fab6ebc 100644 --- a/app/views/articles/index.html.erb +++ b/app/views/articles/index.html.erb @@ -124,12 +124,12 @@