File tree Expand file tree Collapse file tree 2 files changed +14
-11
lines changed
docs/get-involved/hacktoberfest Expand file tree Collapse file tree 2 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ title: Hacktoberfest 2021 at Redis
44sidebar_label : Start Here
55slug : /hacktoberfest/
66authors : [suze,simon]
7+ isEditable : false
78useNextPrev : false
89---
910
Original file line number Diff line number Diff line change @@ -118,17 +118,19 @@ function DocItem(props: Props): JSX.Element {
118118 { ( editUrl || lastUpdatedAt || lastUpdatedBy ) && (
119119 < div className = "margin-vert--xl" >
120120 < div className = "row" >
121- < div className = "col" >
122- { editUrl && (
123- < a
124- href = { editUrl }
125- target = "_blank"
126- rel = "noreferrer noopener" >
127- < IconEdit />
128- Edit this page
129- </ a >
130- ) }
131- </ div >
121+ { ( ! DocContent . frontMatter . hasOwnProperty ( 'isEditable' ) || DocContent . frontMatter . isEditable === true ) && (
122+ < div className = "col" >
123+ { editUrl && (
124+ < a
125+ href = { editUrl }
126+ target = "_blank"
127+ rel = "noreferrer noopener" >
128+ < IconEdit />
129+ Edit this page
130+ </ a >
131+ ) }
132+ </ div >
133+ ) }
132134 { ( lastUpdatedAt || lastUpdatedBy ) && (
133135 < div className = "col text--right" >
134136 < em >
You can’t perform that action at this time.
0 commit comments