share_post: Remove Google Plus (#1108)

* Remove Google Plus
This commit is contained in:
Patrick 2019-04-16 09:42:15 -07:00 committed by Justin Mayer
commit 13e2184d82
2 changed files with 5 additions and 10 deletions

View file

@ -42,12 +42,11 @@ How to Use
`article.share_post`. Keys of the dictionary are as follows,
1. `facebook`
2. `google-plus`
3. `email`
4. `twitter`
5. `diaspora`
6. `linkedin`
7. `hacker-news`
1. `email`
1. `twitter`
1. `diaspora`
1. `linkedin`
1. `hacker-news`
Template Example
================
@ -63,8 +62,6 @@ Template Example
<a href="{{article.share_post['facebook']}}" target="_blank" title="Share on Facebook">Facebook</a>
<a href="{{article.share_post['google-plus']}}" target="_blank" title="Share on Google Plus">Google+</a>
<a href="{{article.share_post['linkedin']}}" target="_blank" title="Share on LinkedIn">LinkedIn</a>
<a href="{{article.share_post['hacker-news']}}" target="_blank" title="Share on HackerNews">HackerNews</a>

View file

@ -59,7 +59,6 @@ def share_post(content):
mail_link = 'mailto:?subject=%s&amp;body=%s' % (title, url)
diaspora_link = 'https://sharetodiaspora.github.io/?title=%s&url=%s' % (title, url)
facebook_link = 'https://www.facebook.com/sharer/sharer.php?u=%s' % url
gplus_link = 'https://plus.google.com/share?url=%s' % url
twitter_link = 'https://twitter.com/intent/tweet?text=%s&url=%s%s%s' % (title, url, via, hastags)
hackernews_link = 'https://news.ycombinator.com/submitlink?t=%s&u=%s' % (title, url)
linkedin_link = 'https://www.linkedin.com/shareArticle?mini=true&url=%s&title=%s&summary=%s&source=%s' % (
@ -70,7 +69,6 @@ def share_post(content):
'diaspora' : diaspora_link,
'twitter' : twitter_link,
'facebook' : facebook_link,
'google-plus': gplus_link,
'linkedin' : linkedin_link,
'hacker-news': hackernews_link,
'email' : mail_link