add comment

This commit is contained in:
nc 2023-02-16 21:07:52 +07:00
parent ced22dfca4
commit 912c0b8f36

View File

@ -1,11 +1,24 @@
import React from "react"; import React from "react";
import { graphql } from "gatsby"; import { graphql, Script } from "gatsby";
import config from '../../../data/site-config'; import config from '../../../data/site-config';
import Base from "../../components/Base"; import Base from "../../components/Base";
import SEO from "../../components/seo"; 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 = () => {
return (
<>
<Script data-isso="//comments.nochill.in/"
src="//comments.nochill.in/js/embed.min.js" />
<section id="isso-thread">
<noscript>Javascript needs to be activated to view comments.</noscript>
</section>
</>
)
}
const Layout = ({ data, children }) => { const Layout = ({ data, children }) => {
const post = data.mdx.frontmatter; const post = data.mdx.frontmatter;
return ( return (
@ -28,6 +41,7 @@ const Layout = ({ data, children }) => {
</div> </div>
</div> </div>
</div> </div>
<Comment />
</Base> </Base>
) )
} }