fix: can't get disqus config
This commit is contained in:
parent
255361ba2c
commit
903f2a2f8f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user