After I added the changes for enabling comments on my Nesta based website, I noticed they showed up everywhere and I decided to try and change this behavior. By adding the following code in my template called “comments.haml” I was able to target only the article pages:

- if short_name = Nesta::Config.disqus_short_name
  - if @page.path =~ /^articles\/.*/
      - if Sinatra::Application.environment == :development
          var disqus_developer = true;
      %script{:type => 'text/javascript', :src => "http://#{short_name}", :async => true}

        %a(href="http://#{short_name}") View comments.
comments powered by Disqus