Skip to content

Commit 59111d1

Browse files
committedMar 5, 2019
Remove Google+
Google+ is being shutdown on April 2, 2019. Social sharing buttong, comment provider, and author link configs have been removed from the theme. ref: https://support.google.com/plus/answer/9195133
1 parent 4a38b5f commit 59111d1

15 files changed

+25
-54
lines changed
 

‎_config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ masthead_title : # overrides the website title displayed in the masthe
2929
# breadcrumbs : false # true, false (default)
3030
words_per_minute : 200
3131
comments:
32-
provider : # false (default), "disqus", "discourse", "facebook", "google-plus", "staticman", "staticman_v2", "utterances", "custom"
32+
provider : # false (default), "disqus", "discourse", "facebook", "staticman", "staticman_v2", "utterances", "custom"
3333
disqus:
3434
shortname : # https://help.disqus.com/customer/portal/articles/466208-what-s-a-shortname-
3535
discourse:

‎_includes/author-profile.html

-8
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,6 @@ <h3 class="author__name" itemprop="name">{{ author.name }}</h3>
9797
</li>
9898
{% endif %}
9999

100-
{% if author.google_plus %}
101-
<li>
102-
<a href="https://plus.google.com/{{ author.google_plus }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
103-
<i class="fab fa-fw fa-google-plus-square" aria-hidden="true"></i> Google+
104-
</a>
105-
</li>
106-
{% endif %}
107-
108100
{% if author.linkedin %}
109101
<li>
110102
<a href="https://www.linkedin.com/in/{{ author.linkedin }}" itemprop="sameAs" rel="nofollow noopener noreferrer">

‎_includes/comments-providers/google-plus.html

-2
This file was deleted.

‎_includes/comments-providers/scripts.html

-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
{% include /comments-providers/discourse.html %}
77
{% when "facebook" %}
88
{% include /comments-providers/facebook.html %}
9-
{% when "google-plus" %}
10-
{% include /comments-providers/google-plus.html %}
119
{% when "staticman" %}
1210
{% include /comments-providers/staticman.html %}
1311
{% when "staticman_v2" %}

‎_includes/comments.html

-15
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,6 @@ <h4 class="page__comments-title">{{ comments_label }}</h4>
1010
{% when "facebook" %}
1111
<h4 class="page__comments-title">{{ comments_label }}</h4>
1212
<section class="fb-comments" data-href="{{ page.url | absolute_url }}" data-mobile="true" data-num-posts="{{ site.comments.facebook.num_posts | default: 5 }}" data-width="100%" data-colorscheme="{{ site.comments.facebook.colorscheme | default: 'light' }}"></section>
13-
{% when "google-plus" %}
14-
<h4 class="page__comments-title">{{ comments_label }}</h4>
15-
<section id="g-comments" class="g-comments">Loading Google+ Comments ...</section>
16-
<script>
17-
function initComment() {
18-
gapi.comments.render("g-comments", {
19-
href: "{{ page.url | absolute_url }}",
20-
width: "624",
21-
first_party_property: "BLOGGER",
22-
view_type: "FILTERED_POSTMOD"
23-
})
24-
}
25-
</script>
26-
<script async type="text/javascript" src="https://apis.google.com/js/plusone.js" onload="initComment()" />
27-
<noscript>Please enable JavaScript to view the <a href="https://plus.google.com/">comments powered by Google+.</a></noscript>-->
2813
{% when "staticman_v2" %}
2914
<section id="static-comments">
3015
{% if site.repository and site.staticman.branch %}

‎_includes/social-share.html

-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,5 @@ <h4 class="page__share-title">{{ site.data.ui-text[site.locale].share_on_label |
77

88
<a href="https://www.facebook.com/sharer/sharer.php?u={{ page.url | absolute_url | url_encode }}" class="btn btn--facebook" onclick="window.open(this.href, 'window', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;" title="{{ site.data.ui-text[site.locale].share_on_label | default: 'Share on' }} Facebook"><i class="fab fa-fw fa-facebook" aria-hidden="true"></i><span> Facebook</span></a>
99

10-
<a href="https://plus.google.com/share?url={{ page.url | absolute_url | url_encode }}" class="btn btn--google-plus" onclick="window.open(this.href, 'window', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;" title="{{ site.data.ui-text[site.locale].share_on_label | default: 'Share on' }} Google Plus"><i class="fab fa-fw fa-google-plus" aria-hidden="true"></i><span> Google+</span></a>
11-
1210
<a href="https://www.linkedin.com/shareArticle?mini=true&url={{ page.url | absolute_url | url_encode }}" class="btn btn--linkedin" onclick="window.open(this.href, 'window', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;" title="{{ site.data.ui-text[site.locale].share_on_label | default: 'Share on' }} LinkedIn"><i class="fab fa-fw fa-linkedin" aria-hidden="true"></i><span> LinkedIn</span></a>
1311
</section>

‎_sass/minimal-mistakes/_buttons.scss

-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
(info, $info-color),
4040
(facebook, $facebook-color),
4141
(twitter, $twitter-color),
42-
(google-plus, $google-plus-color),
4342
(linkedin, $linkedin-color);
4443

4544
@each $buttoncolor, $color in $buttoncolors {

‎_sass/minimal-mistakes/_utilities.scss

-6
Original file line numberDiff line numberDiff line change
@@ -228,12 +228,6 @@ body:hover .visually-hidden button {
228228
color: $gitlab-color;
229229
}
230230

231-
.fa-google-plus,
232-
.fa-google-plus-square,
233-
.fa-google-plus-g {
234-
color: $google-plus-color;
235-
}
236-
237231
.fa-instagram {
238232
color: $instagram-color;
239233
}

‎_sass/minimal-mistakes/_variables.scss

-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ $flickr-color: #ff0084 !default;
8585
$foursquare-color: #0072b1 !default;
8686
$github-color: #171516 !default;
8787
$gitlab-color: #e24329 !default;
88-
$google-plus-color: #dd4b39 !default;
8988
$instagram-color: #517fa4 !default;
9089
$lastfm-color: #d51007 !default;
9190
$linkedin-color: #007bb6 !default;

‎docs/_config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ masthead_title : # overrides the website title displayed in the masthe
2424
# breadcrumbs : false # true, false (default)
2525
words_per_minute : 200
2626
comments:
27-
provider : "false" # false (default), "disqus", "discourse", "facebook", "google-plus", "staticman_v2", "staticman", "utterances", "custom"
27+
provider : "false" # false (default), "disqus", "discourse", "facebook", "staticman_v2", "staticman", "utterances", "custom"
2828
disqus:
2929
shortname :
3030
discourse:

‎docs/_data/authors.yml

+17-7
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,27 @@
22

33
Billy Rick:
44
name : "Billy Rick"
5-
uri : "http://thewhip.com"
6-
email : "billy@rick.com"
75
bio : "What do you want, jewels? I am a very extravagant man."
86
avatar : "/assets/images/bio-photo-2.jpg"
9-
twitter : "extravagantman"
10-
google_plus : "BillyRick"
7+
links:
8+
- label: "Email"
9+
icon: "fas fa-fw fa-envelope-square"
10+
url: "mailto:billyrick@rick.com"
11+
- label: "Website"
12+
icon: "fas fa-fw fa-link"
13+
url: "https://thewhip.com"
14+
- label: "Twitter"
15+
icon: "fab fa-fw fa-twitter-square"
16+
url: "https://twitter.com/extravagantman"
1117

1218
Cornelius Fiddlebone:
1319
name : "Cornelius Fiddlebone"
14-
email : "cornelius@thewhip.com"
1520
bio : "I ordered what?"
1621
avatar : "/assets/images/bio-photo.jpg"
17-
twitter : "rhymeswithsackit"
18-
google_plus : "CorneliusFiddlebone"
22+
links:
23+
- label: "Email"
24+
icon: "fas fa-fw fa-envelope-square"
25+
url: "mailto:cornelius@thewhip.com"
26+
- label: "Twitter"
27+
icon: "fab fa-fw fa-twitter-square"
28+
url: "https://twitter.com/rhymeswithsackit"

‎docs/_docs/05-configuration.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -281,14 +281,13 @@ To disable reading time for a post, add `read_time: false` its YAML Front Matter
281281

282282
### Comments
283283

284-
[**Disqus**](https://disqus.com/), [**Discourse**](https://www.discourse.org/), [**Facebook**](https://developers.facebook.com/docs/plugins/comments), **Google+**, [**utterances**](https://utteranc.es/), and static-based commenting via [**Staticman**](https://staticman.net/) are built into the theme. First set the comment provider you'd like to use:
284+
[**Disqus**](https://disqus.com/), [**Discourse**](https://www.discourse.org/), [**Facebook**](https://developers.facebook.com/docs/plugins/comments), [**utterances**](https://utteranc.es/), and static-based commenting via [**Staticman**](https://staticman.net/) are built into the theme. First set the comment provider you'd like to use:
285285

286286
| Name | Comment Provider |
287287
| ---------------- | ------------------------- |
288288
| **disqus** | Disqus |
289289
| **discourse** | Discourse |
290290
| **facebook** | Facebook Comments |
291-
| **google-plus** | Google+ Comments |
292291
| **staticman_v2** | Staticman v2 |
293292
| **staticman** | Staticman v1 (deprecated) |
294293
| **utterances** | utterances |

‎docs/_docs/10-layouts.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ author:
564564
url: "https://instagram.com/mmistakes"
565565
```
566566

567-
**Note:** Depending on the icon and theme skin used, colors may not be used. Popular social networks like Twitter, Facebook, Instagram, Google+, etc. have the appropriate brand color set in CSS. To change or add missing colors edit [`_utilities.scss`](https://github.com/mmistakes/minimal-mistakes/blob/master/_sass/minimal-mistakes/_utilities.scss) in `<site root>/_sass/minimal-mistakes/`.
567+
**Note:** Depending on the icon and theme skin used, colors may not be used. Popular social networks like Twitter, Facebook, Instagram, etc. have the appropriate brand color set in CSS. To change or add missing colors edit [`_utilities.scss`](https://github.com/mmistakes/minimal-mistakes/blob/master/_sass/minimal-mistakes/_utilities.scss) in `<site root>/_sass/minimal-mistakes/`.
568568
{: .notice--info}
569569

570570
For example, to color a Reddit icon, simply add a `color` declaration and the corresponding hex code like so:
@@ -701,15 +701,15 @@ defaults:
701701

702702
## Social sharing links
703703

704-
The `single` layout has an option to enable social links at the bottom of posts for sharing on Twitter, Facebook, Google+, and LinkedIn. Similar to the links found in the author sidebar, the theme ships with defaults for the most common social networks.
704+
The `single` layout has an option to enable social links at the bottom of posts for sharing on Twitter, Facebook, and LinkedIn. Similar to the links found in the author sidebar, the theme ships with defaults for the most common social networks.
705705

706706
![default social share link buttons]({{ "/assets/images/mm-social-share-links-default.png" | relative_url }})
707707

708708
To enable these links add `share: true` to a post or page's YAML Front Matter or use a [default](https://jekyllrb.com/docs/configuration/#front-matter-defaults) in your `_config.yml` to apply more globally.
709709

710710
If you'd like to add, remove, or change the order of these default links you can do so by editing [`_includes/social-share.html`](https://github.com/mmistakes/minimal-mistakes/blob/master/_includes/social-share.html).
711711

712-
Let's say you wanted to replace the Google+ button with a Reddit one. Simply replace the HTML with the following:
712+
Let's say you wanted to replace the LinkedIn button with a Reddit one. Simply replace the HTML with the following:
713713

714714
```html
715715
{% raw %}<a href="https://www.reddit.com/submit?url={{ page.url | absolute_url | url_encode }}&title={{ page.title }}" class="btn" title="{{ site.data.ui-text[site.locale].share_on_label }} Reddit"><i class="fab fa-fw fa-reddit" aria-hidden="true"></i><span> Reddit</span></a>{% endraw %}
@@ -732,7 +732,6 @@ Under the `$social` color map in `assets/_scss/_buttons.scss` simply add a name
732732
$social:
733733
(facebook, $facebook-color),
734734
(twitter, $twitter-color),
735-
(google-plus, $google-plus-color),
736735
(linkedin, $linkedin-color);
737736
(reddit, #ff4500;)
738737
```

‎docs/_pages/about.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Minimal Mistakes is a flexible two-column Jekyll theme. Perfect for hosting your
3131
- Several responsive layout options (single, archive index, search, splash, and paginated home page).
3232
- Optimized for search engines with support for [Twitter Cards](https://dev.twitter.com/cards/overview) and [Open Graph](http://ogp.me/) data
3333
- Optional [header images](https://mmistakes.github.io/minimal-mistakes/docs/layouts/#headers), [custom sidebars](https://mmistakes.github.io/minimal-mistakes/docs/layouts/#sidebars), [table of contents](https://mmistakes.github.io/minimal-mistakes/docs/helpers/#table-of-contents), [galleries](https://mmistakes.github.io/minimal-mistakes/docs/helpers/#gallery), related posts, [breadcrumb links](https://mmistakes.github.io/minimal-mistakes/docs/configuration/#breadcrumb-navigation-beta), [navigation lists](https://mmistakes.github.io/minimal-mistakes/docs/helpers/#navigation-list), and more.
34-
- Commenting support (powered by [Disqus](https://disqus.com/), [Facebook](https://developers.facebook.com/docs/plugins/comments), Google+, [Discourse](https://www.discourse.org/), [utterances](https://utteranc.es/), static-based via [Staticman v1 and v2](https://staticman.net/), and custom).
34+
- Commenting support (powered by [Disqus](https://disqus.com/), [Facebook](https://developers.facebook.com/docs/plugins/comments), [Discourse](https://www.discourse.org/), [utterances](https://utteranc.es/), static-based via [Staticman v1 and v2](https://staticman.net/), and custom).
3535
- [Google Analytics](https://www.google.com/analytics/) support.
3636
- UI localized text in English (default), Brazilian Portuguese (Português brasileiro), Chinese, Danish, Dutch, French (Français), German (Deutsch), Greek, Hindi (हिंदी), Hungarian, Indonesian, Italian (Italiano), Japanese, Korean, Malayalam, Nepali (Nepalese), Persian (فارسی), Polish, Punjabi (ਪੰਜਾਬੀ), Romanian, Russian, Slovak, Spanish (Español), Swedish, Turkish (Türkçe), and Vietnamese.
3737

‎test/_config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ masthead_title : "Custom Title" # overrides the website title displaye
2323
# breadcrumbs : false # true, false (default)
2424
words_per_minute : 200
2525
comments:
26-
provider : # false (default), "disqus", "discourse", "facebook", "google-plus", "staticman", "utterances", "custom"
26+
provider : # false (default), "disqus", "discourse", "facebook", "staticman", "utterances", "custom"
2727
disqus:
2828
shortname : # https://help.disqus.com/customer/portal/articles/466208-what-s-a-shortname-
2929
discourse:

0 commit comments

Comments
 (0)
Please sign in to comment.