Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added disqus comment partial

  • Loading branch information...
commit 7a1be3eac4b01288e5169cc5f4a3f5931fc6cb3d 1 parent 313f8dd
@ericterpstra ericterpstra authored
Showing with 30 additions and 2 deletions.
  1. +25 −0 partials/comments.hbs
  2. +0 −2  partials/full-post.hbs
  3. +5 −0 post.hbs
View
25 partials/comments.hbs
@@ -0,0 +1,25 @@
+{{!
+ By Default, this theme supports comments supplied by Disqus (http://disqus.com)
+ For assistance in setting up your own Disqus account and customizing it for your needs,
+ please see the Disqus QuickStart Guide: http://help.disqus.com/customer/portal/articles/466182-quick-start-guide
+}}
+
+{{! Use this to force light-on-dark theme: <style>#disqus_thread { color: #000; }</style> }}
+{{! Use this to force dark-on-light theme: <style>#disqus_thread { color: #FFF; }</style> }}
+<div id="disqus_thread"></div>
+<script type="text/javascript">
+ /* * * CONFIGURATION VARIABLES: THIS CODE IS ONLY AN EXAMPLE * * */
+ // var disqus_shortname = 'example'; // Required - Replace example with your forum shortname
+ // var disqus_identifier = 'a unique identifier for each page where Disqus is present';
+ // var disqus_title = 'a unique title for each page where Disqus is present';
+ // var disqus_url = 'a unique URL for each page where Disqus is present';
+
+ /* * * 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="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
+<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
View
2  partials/full-post.hbs
@@ -63,6 +63,4 @@
{{/if}}
</footer> <!-- end article footer -->
-
-
</article>
View
5 post.hbs
@@ -1,6 +1,11 @@
{{!< default}}
{{#post}}
+
{{> full-post}}
+
+ {{! Add the comments partial template (currently only Disqus comments) }}
+ {{> comments}}
+
{{/post}}
Please sign in to comment.
Something went wrong with that request. Please try again.