[site/components/MDX][xs]: turn on edit this page for all (markdown) pages.
This commit is contained in:
parent
104078cb4f
commit
7bfe5abf21
|
|
@ -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 (
|
||||||
<>
|
<>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue