diff --git a/docs/get-involved/hacktoberfest/index-hacktoberfest.mdx b/docs/get-involved/hacktoberfest/index-hacktoberfest.mdx index c871278e46..69333be381 100644 --- a/docs/get-involved/hacktoberfest/index-hacktoberfest.mdx +++ b/docs/get-involved/hacktoberfest/index-hacktoberfest.mdx @@ -4,6 +4,7 @@ title: Hacktoberfest 2021 at Redis sidebar_label: Start Here slug: /hacktoberfest/ authors: [suze,simon] +isEditable: false useNextPrev: false --- diff --git a/src/theme/DocItem/index.tsx b/src/theme/DocItem/index.tsx index f2500c043b..bfbc8888d5 100644 --- a/src/theme/DocItem/index.tsx +++ b/src/theme/DocItem/index.tsx @@ -118,17 +118,19 @@ function DocItem(props: Props): JSX.Element { {(editUrl || lastUpdatedAt || lastUpdatedBy) && (
-
- {editUrl && ( - - - Edit this page - - )} -
+ {(! DocContent.frontMatter.hasOwnProperty('isEditable') || DocContent.frontMatter.isEditable === true) && ( +
+ {editUrl && ( + + + Edit this page + + )} +
+ )} {(lastUpdatedAt || lastUpdatedBy) && (