We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9fda79 commit 7d64b18Copy full SHA for 7d64b18
components/comments/index.js
@@ -24,20 +24,6 @@ const Comments = ({ frontMatter }) => {
24
let term
25
const comment = siteMetadata?.comment
26
if (!comment || Object.keys(comment).length === 0) return <></>
27
- switch (
28
- siteMetadata.comment.giscusConfig.mapping ||
29
- siteMetadata.comment.utterancesConfig.issueTerm
30
- ) {
31
- case 'pathname':
32
- term = frontMatter.slug
33
- break
34
- case 'url':
35
- term = window.location.href
36
37
- case 'title':
38
- term = frontMatter.title
39
40
- }
41
return (
42
<div id="comment">
43
{siteMetadata.comment && siteMetadata.comment.provider === 'giscus' && <GiscusComponent />}
0 commit comments