import React from 'react'
import ReactDisqusComments from 'react-disqus-comments'

const Disqus = ({ postNode, siteMetadata }) => {
  const post = postNode.frontmatter
  const url = siteMetadata.url + postNode.fields.slug
  return (
    <ReactDisqusComments
      shortname={siteMetadata.disqusShortname}
      identifier={post.title}
      title={post.title}
      url={url}
    />
  )
}

export default Disqus

@@ -316,30 +316,59 @@
 tifier=%7Bpost
-.title
+Node.fields.slug.replace(/%5C/$/, '')
 %7D%0A      titl

Change Disqus post identifier to match old site