diff --git a/_config.yml b/_config.yml index 33274a71178eac32f818ad85d76d01169c3af2f3..4a138c4155b7790e027fc284dcdb170d60441152 100644 --- a/_config.yml +++ b/_config.yml @@ -8,6 +8,7 @@ baseurl: "/project-pages" url: "http://matin-hub.github.io" github_username: matin-hub project_repository: project-pages +disqus_shortname: project-pages # Build settings # Don't change these variables diff --git a/_includes/_comments.html b/_includes/_comments.html index 0b1eb5660d58b3efc5294db3574c53d0db6f099f..d75b0fdcb3bd297db702b92ae7aaa0b81ed769ac 100644 --- a/_includes/_comments.html +++ b/_includes/_comments.html @@ -1,14 +1,13 @@ -<script src="https://apis.google.com/js/plusone.js"></script> - -<table align="center"> - <tr> - <td> - <div style="margin-left: 20%; margin-right: 20%; float: none; line-height: normal; font-size: 1px; vertical-align: baseline; height: 600px;" class="g-comments" - data-href="{{ page.url | prepend: site.baseurl | prepend: site.url }}" - data-width="600" - data-first_party_property="BLOGGER" - data-view_type="FILTERED_POSTMOD"> - </div> - </td> - </tr> -</table> +<div id="disqus_thread" class="container" style="padding-right: 50px;padding-left: 50px;"></div> +<script type="text/javascript"> + /* * * CONFIGURATION VARIABLES * * */ + var disqus_shortname = '{{ site.disqus_shortname }}'; + + /* * * DON'T EDIT BELOW THIS LINE * * */ + (function() { + var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; + dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; + (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); + })(); +</script> +<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>