Commits

Dan Carroll committed ef436c9

Add Disqus comments to posts

Comments (0)

Files changed (3)

content/media/css/base.css

     font-size: 0.92em;
 }
 
-div#comments {
-    margin-top: 3em;
-}
-
 
 /* NEW STUFF */
 div#header-container {
     margin-top: 10px;
 }
 
+#comments {
+    border-top: 1px solid #DDD;
+    padding: 20px 0 10px 0;
+}
+
 .footer {
     border-top: 1px solid #DDD;
     color: #999;
 {% block text -%}{%- endblock %}
 {% endmark %}
 {%- endfilter %}
+
+<div id="comments">
+<div id="disqus_thread"></div>
+    <script type="text/javascript">
+        var disqus_shortname = '{{ site.meta.disqus_shortname }}';
+        var disqus_url = '{{ author.url }}{{ content_url(resource.url) }}';
+
+        (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>
+</div>
 {% endblock %}
     nodemeta: meta.yaml
     ga_tracking_code: UA-15134040-1
     author: Dan Carroll
+    disqus_shortname: dancarroll
 
 sorter:
     name: # the name of the sorter (no pun intended)