diff options
| author | davidtsadler <davidtsadler@googlemail.com> | 2012-02-20 23:31:30 +0000 |
|---|---|---|
| committer | davidtsadler <davidtsadler@googlemail.com> | 2012-02-20 23:31:30 +0000 |
| commit | ccac2564fb161c82ef31c8a227498382369ac0e2 (patch) | |
| tree | 5e82d0e10c8a01871fcfcd6da63b827a9bba4158 /_site_build | |
| parent | c484e8de2e13343b6a200c992198f561a1d5de9d (diff) | |
Add disqus integration.
Diffstat (limited to '_site_build')
| -rw-r--r-- | _site_build/_includes/disqus.html | 6 | ||||
| -rw-r--r-- | _site_build/_layouts/default.html | 3 | ||||
| -rw-r--r-- | _site_build/_layouts/post.html | 7 |
3 files changed, 16 insertions, 0 deletions
diff --git a/_site_build/_includes/disqus.html b/_site_build/_includes/disqus.html new file mode 100644 index 0000000..c92a1da --- /dev/null +++ b/_site_build/_includes/disqus.html @@ -0,0 +1,6 @@ +<script type="text/javascript"> + var disqus_shortname='{{ site.disqus_shortname }}',disqus_identifier='{{ page.url }}',disqus_url='{{ site.url}}{{ page.url }}',disqus_title='{{ page.title }}'{% unless site.production %},disqus_developer=1{% endunless %}; + (function(d,t){var q=d.createElement(t),s=d.getElementsByTagName(t)[0]; + q.src='//{{ site.disqus_shortname }}.disqus.com/embed.js'; + s.parentNode.insertBefore(q,s);}(document,'script')); +</script> diff --git a/_site_build/_layouts/default.html b/_site_build/_layouts/default.html index e57e887..918cc1a 100644 --- a/_site_build/_layouts/default.html +++ b/_site_build/_layouts/default.html @@ -30,5 +30,8 @@ {% if site.production and site.google_ua %} {% include google_analytics.html %} {% endif %} +{% if page.comments and site.disqus_shortname %} + {% include disqus.html %} +{% endif %} </body> </html> diff --git a/_site_build/_layouts/post.html b/_site_build/_layouts/post.html index a435a70..f38b1ed 100644 --- a/_site_build/_layouts/post.html +++ b/_site_build/_layouts/post.html @@ -22,4 +22,11 @@ layout: default </ul> </nav> </footer> + {% if page.comments and site.disqus_shortname %} + <aside> + <div id="disqus_thread"></div> + <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> + <a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a> + </aside> + {% endif %} </article> |
