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 : Hacktoberfest 2021
55slug : /hacktoberfest/
66authors : [suze,simon]
7+ isEditable : false
78---
89
910
Original file line number Diff line number Diff line change @@ -119,17 +119,19 @@ function DocItem(props: Props): JSX.Element {
119119 { ( editUrl || lastUpdatedAt || lastUpdatedBy ) && (
120120 < div className = "margin-vert--xl" >
121121 < div className = "row" >
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 >
122+ { ( ! DocContent . frontMatter . hasOwnProperty ( 'isEditable' ) || DocContent . frontMatter . isEditable === true ) && (
123+ < div className = "col" >
124+ { editUrl && (
125+ < a
126+ href = { editUrl }
127+ target = "_blank"
128+ rel = "noreferrer noopener" >
129+ < IconEdit />
130+ Edit this page
131+ </ a >
132+ ) }
133+ </ div >
134+ ) }
133135 { ( lastUpdatedAt || lastUpdatedBy ) && (
134136 < div className = "col text--right" >
135137 < em >
You can’t perform that action at this time.
0 commit comments