lib/nanoc/toolbox/helpers/disqus.rb
def disqus_id_for(item, options={})
      id = ''
      id += options[:disqus_id_prefix] if options[:disqus_id_prefix]
      id += slug_for(item)
      id.gsub(/-/, '_')
    end
# Creates an id out of the page slug that disqus uses for an id
Creates an id out of the page slug that disqus uses for an id
Creates an id out of the page slug that disqus uses for an id
def disqus_id_for(item, options={})
      id = ''
      id += options[:disqus_id_prefix] if options[:disqus_id_prefix]
      id += slug_for(item)
      id.gsub(/-/, '_')
    end
def disqus_id_for ( item , options = { } ) id = '' id += options [ :disqus_id_prefix ] if options [ :disqus_id_prefix ] id += slug_for ( item ) id . gsub ( / - / , '_' ) end
Creates an id out of the page slug that disqus uses for an id
Creates an id out of the page slug that disqus uses for an id
item
options