Skip to content

Commit 86bb7ac

Browse files
committed
Add edit button only on reference pages
1 parent 7a43357 commit 86bb7ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/Layout/Page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export function Page({
5858
const description = meta.description || route?.description || '';
5959
const isHomePage = cleanedPath === '/';
6060
const isBlogIndex = cleanedPath === '/blog';
61+
const isReferencePage = cleanedPath.startsWith('/reference');
6162

6263
let content;
6364
if (isHomePage) {
@@ -89,7 +90,7 @@ export function Page({
8990
</LanguagesContext.Provider>
9091
</TocContext.Provider>
9192
</div>
92-
{!isBlogIndex && <EditThis />}
93+
{isReferencePage && <EditThis />}
9394
{!isBlogIndex && (
9495
<DocsPageFooter
9596
route={route}

0 commit comments

Comments
 (0)