Skip to content

Commit

Permalink
Comment box fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Zobair Shahadat committed Jul 4, 2017
1 parent 3a017c5 commit 23914d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
5 changes: 3 additions & 2 deletions _includes/comments-providers/google-plus.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
<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>
<!--
<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>-->
13 changes: 3 additions & 10 deletions _includes/comments.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,9 @@ <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>
<div id="g-comments"></div>
<script async type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
<script defer>
gapi.comments.render('g-comments', {
href: window.location,
width: '624',
first_party_property: 'BLOGGER',
view_type: 'FILTERED_POSTMOD'
});
</script>
<section id="g-comments" class="g-comments"></section>
<script>function initComment(){gapi.comments.render("g-comments",{href:window.location,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()" />
{% when "staticman" %}
<section id="static-comments">
{% if site.repository and site.staticman.branch %}
Expand Down

0 comments on commit 23914d3

Please sign in to comment.