Skip to content

Commit

Permalink
#2248:fix sidebar title and the breadcrumbs title should be the same
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjeevkumar321 committed Feb 3, 2024
1 parent 6521b8f commit 24576fb
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions database/cloud_computing_platforms/aws.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
4 changes: 2 additions & 2 deletions database/cloud_computing_platforms/azure.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
2 changes: 1 addition & 1 deletion database/cloud_computing_platforms/gcp.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
2 changes: 1 addition & 1 deletion database/cloud_computing_platforms/ibm.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
4 changes: 2 additions & 2 deletions database/cloud_computing_platforms/oracle.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
10 changes: 5 additions & 5 deletions database/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
],
},
{
Expand Down
2 changes: 1 addition & 1 deletion pages/[category]/[...subcategory].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const SubCategory: NextPage<PageProps> = ({ 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
Expand Down

0 comments on commit 24576fb

Please sign in to comment.