From 24576fb5de0df90a8861b3b9a9dcc3a5d0efbe5b Mon Sep 17 00:00:00 2001 From: sanjeev kumar sahoo Date: Sat, 3 Feb 2024 14:21:29 +0530 Subject: [PATCH] #2248:fix sidebar title and the breadcrumbs title should be the same --- database/cloud_computing_platforms/aws.json | 4 ++-- database/cloud_computing_platforms/azure.json | 4 ++-- database/cloud_computing_platforms/gcp.json | 2 +- database/cloud_computing_platforms/ibm.json | 2 +- database/cloud_computing_platforms/oracle.json | 4 ++-- database/data.ts | 10 +++++----- pages/[category]/[...subcategory].tsx | 2 +- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/database/cloud_computing_platforms/aws.json b/database/cloud_computing_platforms/aws.json index a34d4de98..90f81e528 100644 --- a/database/cloud_computing_platforms/aws.json +++ b/database/cloud_computing_platforms/aws.json @@ -4,14 +4,14 @@ "description": "Gain free, hands-on experience with the AWS platform, products, and services. AWS Activate provides eligible startups with a host of resources, including free AWS credits to spend on AWS services, and AWS Support. ", "url": "https://docs.aws.amazon.com/index.html", "category": "cloud-computing", - "subcategory": "aws" + "subcategory": "aws-cloud" }, { "name": "AWS tutorial for beginners", "description": "Learn AWS from basic-to-advanced level. This playlist has short and great tutorials that will help you learn AWS.", "url": "https://www.youtube.com/playlist?list=PL6XT0grm_TfgtwtwUit305qS-HhDvb4du", "category": "cloud-computing", - "subcategory": "aws", + "subcategory": "aws-cloud", "language": "hindi" } ] diff --git a/database/cloud_computing_platforms/azure.json b/database/cloud_computing_platforms/azure.json index 2a782c0ae..ff1286906 100644 --- a/database/cloud_computing_platforms/azure.json +++ b/database/cloud_computing_platforms/azure.json @@ -4,13 +4,13 @@ "description": "Learn how to build and manage powerful applications using Microsoft Azure cloud services. Get documentation, example code, tutorials, and more.", "url": "https://learn.microsoft.com/en-us/azure/?product=popular", "category": "cloud-computing", - "subcategory": "azure" + "subcategory": "microsoft-cloud" }, { "name": "Microsoft Learn & Certified", "description": "Microsoft has certification paths for many technical job roles. Each of these certifications consists of passing a series of exams to earn them. ", "url": "https://learn.microsoft.com/en-us/certifications/", "category": "cloud-computing", - "subcategory": "azure" + "subcategory": "microsoft-cloud" } ] \ No newline at end of file diff --git a/database/cloud_computing_platforms/gcp.json b/database/cloud_computing_platforms/gcp.json index e41fce034..b9a3f3a4c 100644 --- a/database/cloud_computing_platforms/gcp.json +++ b/database/cloud_computing_platforms/gcp.json @@ -4,6 +4,6 @@ "description": "Find guides, code samples, architectural diagrams, best practices, tutorials, API references, and more to learn how to build on Google Cloud.", "url": "https://cloud.google.com/docs/", "category": "cloud-computing", - "subcategory": "gcp" + "subcategory": "google-cloud" } ] \ No newline at end of file diff --git a/database/cloud_computing_platforms/ibm.json b/database/cloud_computing_platforms/ibm.json index 106f5ef2c..3702bea45 100644 --- a/database/cloud_computing_platforms/ibm.json +++ b/database/cloud_computing_platforms/ibm.json @@ -4,6 +4,6 @@ "description": "The IBM Cloud platform is composed of multiple components that work together to provide a consistent and dependable cloud experience.", "url": "https://cloud.ibm.com/docs", "category": "cloud-computing", - "subcategory": "ibm" + "subcategory": "ibm-cloud" } ] \ No newline at end of file diff --git a/database/cloud_computing_platforms/oracle.json b/database/cloud_computing_platforms/oracle.json index 21604b9c7..a1cb44eeb 100644 --- a/database/cloud_computing_platforms/oracle.json +++ b/database/cloud_computing_platforms/oracle.json @@ -4,13 +4,13 @@ "description": "Looking for comprehensive documentation, tutorials, or videos so you can learn about Oracle Cloud Services? You can find all of these resources here in the Oracle Help Center.", "url": "https://docs.oracle.com/en/cloud/get-started/index.html", "category": "cloud-computing", - "subcategory": "oracle" + "subcategory": "oracle-cloud" }, { "name": "OCI certifications", "description": "Accelerate your cloud journey along with free certification from Oracle", "url": "https://education.oracle.com/home", "category": "cloud-computing", - "subcategory": "oracle" + "subcategory": "oracle-cloud" } ] diff --git a/database/data.ts b/database/data.ts index 89f6173ff..3b7eaf8c5 100644 --- a/database/data.ts +++ b/database/data.ts @@ -231,15 +231,15 @@ export const sidebarData: ISidebar[] = [ { category: 'cloud-computing', subcategory: [ - { name: 'google cloud', url: '/gcp', resources: DB.gcp }, + { name: 'google cloud', url: '/google-cloud', resources: DB.gcp }, { name: 'AWS cloud', - url: '/aws', + url: '/aws-cloud', resources: DB.aws, }, - { name: 'Microsoft cloud', url: '/azure', resources: DB.azure }, - { name: 'Oracle cloud', url: '/oracle', resources: DB.oracle }, - { name: 'IBM cloud', url: '/ibm', resources: DB.ibm }, + { name: 'Microsoft cloud', url: '/microsoft-cloud', resources: DB.azure }, + { name: 'Oracle cloud', url: '/oracle-cloud', resources: DB.oracle }, + { name: 'IBM cloud', url: '/ibm-cloud', resources: DB.ibm }, ], }, { diff --git a/pages/[category]/[...subcategory].tsx b/pages/[category]/[...subcategory].tsx index 1b40199c2..33c1f18b2 100644 --- a/pages/[category]/[...subcategory].tsx +++ b/pages/[category]/[...subcategory].tsx @@ -22,7 +22,7 @@ const SubCategory: NextPage = ({ subcategory }) => { const title = `LinksHub - ${ pageCategory[0].toUpperCase() + pageCategory.slice(1) }` - const numberOfCards = filterDB[0].length + const numberOfCards = filterDB[0]?.length const { totalPages, currentPage, startIndex, endIndex, handlePageChange } = usePagination(filterDB.length ? filterDB[0].length : 0) let content: JSX.Element[] | JSX.Element