Merge pull request #406 from agamm/master
Fallback if no comment present
This commit is contained in:
commit
370bdba906
@ -22,6 +22,8 @@ const DisqusComponent = dynamic(
|
||||
|
||||
const Comments = ({ frontMatter }) => {
|
||||
let term
|
||||
const comment = siteMetadata?.comment
|
||||
if (!comment || Object.keys(comment).length === 0) return <></>
|
||||
switch (
|
||||
siteMetadata.comment.giscusConfig.mapping ||
|
||||
siteMetadata.comment.utterancesConfig.issueTerm
|
||||
|
Loading…
x
Reference in New Issue
Block a user