diff --git a/helpers/middleman_casper_helpers.rb b/helpers/middleman_casper_helpers.rb index ce5d1cf..b017bf6 100644 --- a/helpers/middleman_casper_helpers.rb +++ b/helpers/middleman_casper_helpers.rb @@ -98,14 +98,21 @@ module MiddlemanCasperHelpers end def twitter_url - "https://twitter.com/share?text=#{current_article.title}" \ - "&url=#{current_article_url}" + "https://twitter.com/share?text=#{ERB::Util.u current_article.title}" \ + "&url=#{ERB::Util.u current_article_url}" end def facebook_url - "https://www.facebook.com/sharer/sharer.php?u=#{current_article_url}" + "https://www.facebook.com/sharer/sharer.php?" \ + "u=#{ERB::Util.u current_article_url}" end def google_plus_url - "https://plus.google.com/share?url=#{current_article_url}" + "https://plus.google.com/share?" \ + "url=#{ERB::Util.u current_article_url}" + end + def mail_url + "mailto:?to=" \ + "&subject=#{ERB::Util.u current_article.title}" \ + "&body=#{ERB::Util.u "Check out this article. I think you'll find it of interest.\r\n\r\n" + current_article_url.to_s}" end def feed_path diff --git a/source/fonts/icons.config.json b/source/fonts/icons.config.json index a25d8aa..5c43b11 100644 --- a/source/fonts/icons.config.json +++ b/source/fonts/icons.config.json @@ -6,6 +6,12 @@ "units_per_em": 512, "ascent": 480, "glyphs": [ + { + "uid": "ccc2329632396dc096bb638d4b46fb98", + "css": "mail", + "code": 62989, + "src": "fontawesome" + }, { "uid": "72b1277834cba5b7944b0a6cac7ddb0d", "css": "feed", @@ -79,4 +85,4 @@ "src": "websymbols" } ] -} \ No newline at end of file +} diff --git a/source/fonts/icons.eot b/source/fonts/icons.eot index d9a8fa5..e3c36b3 100644 Binary files a/source/fonts/icons.eot and b/source/fonts/icons.eot differ diff --git a/source/fonts/icons.svg b/source/fonts/icons.svg index 683441f..ab5a1a4 100644 --- a/source/fonts/icons.svg +++ b/source/fonts/icons.svg @@ -1,7 +1,7 @@ -Copyright (C) 2015 by original authors @ fontello.com +Copyright (C) 2016 by original authors @ fontello.com @@ -18,6 +18,7 @@ + \ No newline at end of file diff --git a/source/fonts/icons.ttf b/source/fonts/icons.ttf index 13c5a73..20b42fa 100644 Binary files a/source/fonts/icons.ttf and b/source/fonts/icons.ttf differ diff --git a/source/fonts/icons.woff b/source/fonts/icons.woff index 61db6d4..8cfdf36 100644 Binary files a/source/fonts/icons.woff and b/source/fonts/icons.woff differ diff --git a/source/layouts/post.haml b/source/layouts/post.haml index 101e316..9f45793 100644 --- a/source/layouts/post.haml +++ b/source/layouts/post.haml @@ -55,6 +55,8 @@ %span.hidden Facebook %a.icon-google-plus{href: google_plus_url, onclick: "window.open(this.href, 'google-plus-share', 'width=490,height=530');return false;"} %span.hidden Google+ + %a.icon-mail{href: mail_url} + %span.hidden Email %aside.read-next - if prev_article = current_article.previous_article diff --git a/source/stylesheets/_casper_override.css.scss b/source/stylesheets/_casper_override.css.scss index 0468f8c..5ee7c44 100644 --- a/source/stylesheets/_casper_override.css.scss +++ b/source/stylesheets/_casper_override.css.scss @@ -27,3 +27,9 @@ .author-bio { text-align: left; } +.post-footer .share a { + margin: 1rem 1.4rem 1.4rem 0; +} +.post-footer .share .icon-mail:hover { + color: #111; +} diff --git a/source/stylesheets/_icons.css.scss b/source/stylesheets/_icons.css.scss index 5a09758..0f256fb 100644 --- a/source/stylesheets/_icons.css.scss +++ b/source/stylesheets/_icons.css.scss @@ -31,3 +31,4 @@ .icon-stackoverflow:before { content: '\f60a'; } .icon-github:before { content: '\f60b'; } .icon-xing:before { content: '\f60c'; } +.icon-mail:before { content: '\f60d'; }