diff --git a/src/templates/learn-doc.js b/src/templates/learn-doc.js
index 7c02dcbe721..62a5e9f2c36 100644
--- a/src/templates/learn-doc.js
+++ b/src/templates/learn-doc.js
@@ -74,6 +74,26 @@ const Tiles = ({ mode, mdx, navLinks, cardNavNodes }) => {
return null;
};
+const EditButton = ({ githubEditLink }) => (
+
+ Edit this page
+
+);
+
+const FeedbackButton = ({ githubIssuesLink }) => (
+
+ Feedback
+
+);
+
const LearnDocTemplate = ({ data, pageContext }) => {
const { mdx } = data;
const { mtime, path, depth } = mdx.fields;
@@ -115,6 +135,14 @@ const LearnDocTemplate = ({ data, pageContext }) => {
}
).iconName;
+ // CNO isn't editable
+ // TODO unify docs/advo to share one smart component that knows what to show
+ const editOrFeedbackButton = path.includes('/cloud_native_operator/') ? (
+
+ ) : (
+
+ );
+
return (
@@ -131,12 +159,7 @@ const LearnDocTemplate = ({ data, pageContext }) => {