File tree Expand file tree Collapse file tree 3 files changed +21
-15
lines changed
develop/java/spring/redis-and-spring-course
get-involved/hacktoberfest Expand file tree Collapse file tree 3 files changed +21
-15
lines changed Original file line number Diff line number Diff line change 11---
22id : index-redis-and-spring-course
3- title : Redis and Spring Course
3+ title : Getting Started with Spring Data Redis
44sidebar_label : Overview
55slug : /develop/java/redis-and-spring-course
66---
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ title: Hacktoberfest 2021 at Redis
44sidebar_label : Start Here
55slug : /hacktoberfest/
66authors : [suze,simon]
7+ isEditable : false
8+ useNextPrev : false
79---
810
911
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 >
@@ -169,9 +171,11 @@ function DocItem(props: Props): JSX.Element {
169171 </ div >
170172 </ div >
171173 ) }
172- < div className = "margin-vert--lg" >
173- < DocPaginator metadata = { metadata } />
174- </ div >
174+ { ( ! DocContent . frontMatter . hasOwnProperty ( 'useNextPrev' ) || DocContent . frontMatter . useNextPrev === true ) && (
175+ < div className = "margin-vert--lg" >
176+ < DocPaginator metadata = { metadata } />
177+ </ div >
178+ ) }
175179 </ div >
176180 </ div >
177181 { ! hideTableOfContents && DocContent . toc && (
You can’t perform that action at this time.
0 commit comments