Fallback if no comment present
This commit is contained in:
parent
f2472ec4b0
commit
4d2611f8a8
@ -22,6 +22,7 @@ const DisqusComponent = dynamic(
|
||||
|
||||
const Comments = ({ frontMatter }) => {
|
||||
let term
|
||||
if (!siteMetadata.comment) return <></>
|
||||
switch (
|
||||
siteMetadata.comment.giscusConfig.mapping ||
|
||||
siteMetadata.comment.utterancesConfig.issueTerm
|
||||
|
Loading…
x
Reference in New Issue
Block a user