fix: can't get disqus config

This commit is contained in:
llovvoll 2021-12-24 01:25:47 +08:00
parent 255361ba2c
commit 903f2a2f8f

View File

@ -16,7 +16,7 @@ const Disqus = ({ frontMatter }) => {
}
if (window.DISQUS === undefined) {
const script = document.createElement('script')
script.src = 'https://' + siteMetadata.comment.disqus.shortname + '.disqus.com/embed.js'
script.src = 'https://' + siteMetadata.comment.disqusConfig.shortname + '.disqus.com/embed.js'
script.setAttribute('data-timestamp', +new Date())
script.setAttribute('crossorigin', 'anonymous')
script.async = true