~xdavidwu/xdavidwu.link

c1f4ea7004e1dcd46cc5c7a9a261858cf4d4abe3 — Zobair Shahadat 7 years ago 0b7f0de
Google+ page comments updated.
2 files changed, 7 insertions(+), 1 deletions(-)

M _includes/comments-providers/scripts.html
M _includes/comments.html
M _includes/comments-providers/scripts.html => _includes/comments-providers/scripts.html +3 -0
@@ 7,8 7,11 @@
  {% include /comments-providers/discourse.html %}
{% when "facebook" %}
  {% include /comments-providers/facebook.html %}
{% comment %}
<!--Google-plus comments are handled on _includes/comments.html-->
{% when "google-plus" %}
  {% include /comments-providers/google-plus.html %}
{% endcomment %}
{% when "staticman" %}
  {% include /comments-providers/staticman.html %}
{% when "custom" %}

M _includes/comments.html => _includes/comments.html +4 -1
@@ 12,7 12,10 @@
    <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 class="g-comments" data-href="{{ page.url | absolute_url }}" data-first_party_property="BLOGGER" data-view_type="FILTERED_POSTMOD">Loading Google+ Comments ...</section>
    <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" %}
    <section id="static-comments">
      {% if site.repository and site.staticman.branch %}