From 26d3c4b9f7b41d10c97b4a5b1d6dc237d31cd9f4 Mon Sep 17 00:00:00 2001 From: Bikash Date: Wed, 3 Jan 2024 11:24:35 +0530 Subject: [PATCH] Website design changes --- src/apps/devdoc/app/layout/theme.tsx | 4 +++- src/apps/devdoc/app/utils/config.tsx | 1 + src/apps/devdoc/app/utils/use-config.tsx | 1 + src/apps/devdoc/pages/_meta.json | 2 +- src/apps/devdoc/pages/index.mdx | 6 +++--- 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/apps/devdoc/app/layout/theme.tsx b/src/apps/devdoc/app/layout/theme.tsx index 319326cbc..c01b37f5a 100644 --- a/src/apps/devdoc/app/layout/theme.tsx +++ b/src/apps/devdoc/app/layout/theme.tsx @@ -39,6 +39,8 @@ function GitTimestamp({ timestamp }: { timestamp: Date }) { const Main = ({ children, pageOpts }: NextraThemeLayoutProps) => { const { title, frontMatter, pageMap, headings } = pageOpts; + console.log(pageOpts); + const { state } = useMenu(); useEffect(() => { @@ -76,7 +78,7 @@ const Main = ({ children, pageOpts }: NextraThemeLayoutProps) => { return (
- {title} + {title === "Index" ? config.siteTitle : title} { }; export default { + siteTitle:"Kloudlite", logo: (
diff --git a/src/apps/devdoc/app/utils/use-config.tsx b/src/apps/devdoc/app/utils/use-config.tsx index 8d21c0d86..bceec55c1 100644 --- a/src/apps/devdoc/app/utils/use-config.tsx +++ b/src/apps/devdoc/app/utils/use-config.tsx @@ -10,6 +10,7 @@ import { } from 'react'; export interface IConfig { + siteTitle?:string; logo?: ReactNode; footer?: | { diff --git a/src/apps/devdoc/pages/_meta.json b/src/apps/devdoc/pages/_meta.json index 0a7b76d42..297071293 100644 --- a/src/apps/devdoc/pages/_meta.json +++ b/src/apps/devdoc/pages/_meta.json @@ -1,6 +1,6 @@ { "index":{ - "title":"Home", + "title":"Kloudlite", "type":"page", "display":"hidden", "theme":{ diff --git a/src/apps/devdoc/pages/index.mdx b/src/apps/devdoc/pages/index.mdx index e5386507c..741ba5454 100644 --- a/src/apps/devdoc/pages/index.mdx +++ b/src/apps/devdoc/pages/index.mdx @@ -22,21 +22,21 @@ export const suites = [ desc: "Self-Serve environments crafted for development, staging and production workloads", img: , imgPad: "px-[74px] py-[22px] md:px-[10px] xl:px-[74px] xl:py-[22px]", - to:"devops-design" + to:"devops" }, { title: "InfraOps", desc: "Flexible & Cost Effective Kubernetes Cluster Management at your fingertips", imgPad: "px-[45px] py-[42px]", img: , - to:"infraops-design" + to:"infraops" }, { title: "Distribution", desc: "Cloud accelerated build system and container registry to build and ship containers anywhere", imgPad: "px-[76px] py-[22px]", img: , - to:"distribution-design" + to:"distribution" }, ]