fix isso script
This commit is contained in:
parent
70d3303bfa
commit
78b5489942
@ -6,11 +6,13 @@ import SEO from "../../components/seo";
|
|||||||
import { MDXProvider } from '@mdx-js/react';
|
import { MDXProvider } from '@mdx-js/react';
|
||||||
import './styles.scss';
|
import './styles.scss';
|
||||||
|
|
||||||
const Comment = () => {
|
const Comment = ({post_id}) => {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Script data-isso="//comments.nochill.in/"
|
<Script data-isso="//comments.nochill.in/"
|
||||||
src="//comments.nochill.in/js/embed.min.js" />
|
src="//comments.nochill.in/js/embed.min.js"
|
||||||
|
id={post_id}
|
||||||
|
/>
|
||||||
|
|
||||||
<section id="isso-thread">
|
<section id="isso-thread">
|
||||||
<noscript>Javascript needs to be activated to view comments.</noscript>
|
<noscript>Javascript needs to be activated to view comments.</noscript>
|
||||||
@ -47,9 +49,7 @@ const Layout = ({ data, children }) => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{ loadComment &&
|
<Comment post_id={post.title}/>
|
||||||
<Comment />
|
|
||||||
}
|
|
||||||
</Base>
|
</Base>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user