Skip to content

Commit

Permalink
seems like disqus_developer is not required
Browse files Browse the repository at this point in the history
  • Loading branch information
tcurdt committed Oct 12, 2010
1 parent 673dd91 commit 4404127
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions lib/awestruct/extensions/disqus.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,9 @@ def execute(site)

module Disqus
def disqus_comments()
html = %Q{
%Q{
<div id="disqus_thread"></div>
<script type="text/javascript">
}
if site.disqus_developer
html += %Q{
var disqus_developer = 1;
}
end
html += %Q{
var disqus_url = "#{self.url}";
(function() {
var dsq = document.createElement("script"); dsq.type = "text/javascript"; dsq.async = true;
Expand All @@ -27,7 +20,6 @@ def disqus_comments()
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript=#{site.disqus}">comments powered by Disqus.</a></noscript>
}
html
end

def disqus_comments_link()
Expand Down

0 comments on commit 4404127

Please sign in to comment.