1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-09-13 23:45:30 -04:00

allow disabling comments via front matter

This commit is contained in:
2022-01-09 16:22:45 -05:00
parent 65416fcc1f
commit 58ac05a84f
3 changed files with 3 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ tags:
- Hillary Clinton
- Politics
image: "/static/images/notes/millenial-with-hillary-clinton/24707394571_0818d4ab83_o-1-copy.jpg"
noComments: true
---
import Video from "./components/embeds/Video";

View File

@@ -9,6 +9,7 @@ tags:
- Rap
- Tufts University
image: "/static/images/notes/no-homo-still-raps-motto/1_b41ztscbaxqi60snwsswfw.jpg"
noComments: true
---
{/* prettier-ignore */}

View File

@@ -59,7 +59,7 @@ const Note = ({ frontMatter, mdxSource }) => {
{/* @ts-ignore */}
<MDXComponent components={mdxComponents} />
</Content>
<Comments slug={frontMatter.slug} />
{frontMatter.noComments !== true && <Comments slug={frontMatter.slug} />}
</>
);
};