~xdavidwu/xdavidwu.link

fc30fa3a3c3b8d12b6c489c26ed4c2190babe5c8 — Michael Rose 5 years ago 5f18675
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
M _config.yml => _config.yml +1 -1
@@ 29,7 29,7 @@ masthead_title           : # overrides the website title displayed in the masthe
# breadcrumbs            : false # true, false (default)
words_per_minute         : 200
comments:
  provider               : # false (default), "disqus", "discourse", "facebook", "google-plus", "staticman", "staticman_v2", "utterances", "custom"
  provider               : # false (default), "disqus", "discourse", "facebook", "staticman", "staticman_v2", "utterances", "custom"
  disqus:
    shortname            : # https://help.disqus.com/customer/portal/articles/466208-what-s-a-shortname-
  discourse:

M _includes/author-profile.html => _includes/author-profile.html +0 -8
@@ 97,14 97,6 @@
        </li>
      {% endif %}

      {% if author.google_plus %}
        <li>
          <a href="https://plus.google.com/{{ author.google_plus }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
            <i class="fab fa-fw fa-google-plus-square" aria-hidden="true"></i> Google+
          </a>
        </li>
      {% endif %}

      {% if author.linkedin %}
        <li>
          <a href="https://www.linkedin.com/in/{{ author.linkedin }}" itemprop="sameAs" rel="nofollow noopener noreferrer">

D _includes/comments-providers/google-plus.html => _includes/comments-providers/google-plus.html +0 -2
@@ 1,2 0,0 @@
<script async type="text/javascript" src="//apis.google.com/js/plusone.js?callback=gpcb"></script>
<noscript>Please enable JavaScript to view the <a href="https://plus.google.com/">comments powered by Google+.</a></noscript>
\ No newline at end of file

M _includes/comments-providers/scripts.html => _includes/comments-providers/scripts.html +0 -2
@@ 6,8 6,6 @@
    {% include /comments-providers/discourse.html %}
  {% when "facebook" %}
    {% include /comments-providers/facebook.html %}
  {% when "google-plus" %}
    {% include /comments-providers/google-plus.html %}
  {% when "staticman" %}
    {% include /comments-providers/staticman.html %}
  {% when "staticman_v2" %}

M _includes/comments.html => _includes/comments.html +0 -15
@@ 10,21 10,6 @@
    {% when "facebook" %}
      <h4 class="page__comments-title">{{ comments_label }}</h4>
      <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>
    {% when "google-plus" %}
      <h4 class="page__comments-title">{{ comments_label }}</h4>
      <section id="g-comments" class="g-comments">Loading Google+ Comments ...</section>
      <script>
        function initComment() {
          gapi.comments.render("g-comments", {
            href: "{{ page.url | absolute_url }}",
            width: "624",
            first_party_property: "BLOGGER",
            view_type: "FILTERED_POSTMOD"
          })
        }
      </script>
      <script async type="text/javascript" src="https://apis.google.com/js/plusone.js" onload="initComment()" />
      <noscript>Please enable JavaScript to view the <a href="https://plus.google.com/">comments powered by Google+.</a></noscript>-->
    {% when "staticman_v2" %}
      <section id="static-comments">
        {% if site.repository and site.staticman.branch %}

M _includes/social-share.html => _includes/social-share.html +0 -2
@@ 7,7 7,5 @@

  <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>

  <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>

  <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>
</section>

M _sass/minimal-mistakes/_buttons.scss => _sass/minimal-mistakes/_buttons.scss +0 -1
@@ 39,7 39,6 @@
  (info, $info-color),
  (facebook, $facebook-color),
  (twitter, $twitter-color),
  (google-plus, $google-plus-color),
  (linkedin, $linkedin-color);

  @each $buttoncolor, $color in $buttoncolors {

M _sass/minimal-mistakes/_utilities.scss => _sass/minimal-mistakes/_utilities.scss +0 -6
@@ 228,12 228,6 @@ body:hover .visually-hidden button {
    color: $gitlab-color;
  }

  .fa-google-plus,
  .fa-google-plus-square,
  .fa-google-plus-g {
    color: $google-plus-color;
  }

  .fa-instagram {
    color: $instagram-color;
  }

M _sass/minimal-mistakes/_variables.scss => _sass/minimal-mistakes/_variables.scss +0 -1
@@ 85,7 85,6 @@ $flickr-color: #ff0084 !default;
$foursquare-color: #0072b1 !default;
$github-color: #171516 !default;
$gitlab-color: #e24329 !default;
$google-plus-color: #dd4b39 !default;
$instagram-color: #517fa4 !default;
$lastfm-color: #d51007 !default;
$linkedin-color: #007bb6 !default;