1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-03 15:06:36 -04:00

add utteranc.es comments to notes

This commit is contained in:
2022-01-08 07:41:54 -05:00
parent 809a29b1cb
commit c35e33da8d
4 changed files with 60 additions and 3 deletions

View File

@ -4,6 +4,7 @@ import { NextSeo, ArticleJsonLd } from "next-seo";
import { escape } from "html-escaper";
import Content from "../../components/Content";
import Meta from "../../components/notes/Meta";
import Comments from "../../components/notes/Comments";
import mdxComponents from "../../components/mdxComponents";
import { getNoteData, getNoteSlugs } from "../../lib/parse-notes";
import * as config from "../../lib/config";
@ -55,10 +56,9 @@ const Note = ({ frontMatter, source }) => (
<Meta {...frontMatter} />
<Content>
<div className="markdown">
<MDXRemote {...source} components={mdxComponents} />
</div>
<MDXRemote {...source} components={mdxComponents} />
</Content>
<Comments slug={frontMatter.slug} />
</>
);