[site/components/MDX][xs]: turn on edit this page for all (markdown) pages.

This commit is contained in:
Rufus Pollock 2022-06-16 17:07:59 +02:00
parent 104078cb4f
commit 7bfe5abf21
1 changed files with 2 additions and 4 deletions

View File

@ -38,10 +38,8 @@ export default function MdxPage({ body, meta }) {
? youtubeThumnbnail ? youtubeThumnbnail
: null; : null;
// enable editing content only for claims, concepts, and guide for now // enable editing for all pages for now
const editUrl = ["claims", "concepts", "guide"].includes(_raw.sourceFileDir) const editUrl = siteConfig.repoRoot + siteConfig.repoEditPath + _raw.sourceFilePath
? siteConfig.repoRoot + siteConfig.repoEditPath + _raw.sourceFilePath
: null;
return ( return (
<> <>