mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-10-30 03:56:01 -04:00
allow disabling comments via front matter
This commit is contained in:
@@ -8,6 +8,7 @@ tags:
|
|||||||
- Hillary Clinton
|
- Hillary Clinton
|
||||||
- Politics
|
- Politics
|
||||||
image: "/static/images/notes/millenial-with-hillary-clinton/24707394571_0818d4ab83_o-1-copy.jpg"
|
image: "/static/images/notes/millenial-with-hillary-clinton/24707394571_0818d4ab83_o-1-copy.jpg"
|
||||||
|
noComments: true
|
||||||
---
|
---
|
||||||
|
|
||||||
import Video from "./components/embeds/Video";
|
import Video from "./components/embeds/Video";
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ tags:
|
|||||||
- Rap
|
- Rap
|
||||||
- Tufts University
|
- Tufts University
|
||||||
image: "/static/images/notes/no-homo-still-raps-motto/1_b41ztscbaxqi60snwsswfw.jpg"
|
image: "/static/images/notes/no-homo-still-raps-motto/1_b41ztscbaxqi60snwsswfw.jpg"
|
||||||
|
noComments: true
|
||||||
---
|
---
|
||||||
|
|
||||||
{/* prettier-ignore */}
|
{/* prettier-ignore */}
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ const Note = ({ frontMatter, mdxSource }) => {
|
|||||||
{/* @ts-ignore */}
|
{/* @ts-ignore */}
|
||||||
<MDXComponent components={mdxComponents} />
|
<MDXComponent components={mdxComponents} />
|
||||||
</Content>
|
</Content>
|
||||||
<Comments slug={frontMatter.slug} />
|
{frontMatter.noComments !== true && <Comments slug={frontMatter.slug} />}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user