Skip to content

Commit 8cba567

Browse files
committed
fix: use-cases order
1 parent e3dede7 commit 8cba567

10 files changed

+11
-3
lines changed

src/content.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ const useCases = defineCollection({
275275
description: z.string().optional(),
276276
date: z.date().optional(),
277277
author: z.string().optional(),
278+
order: z.number().optional().default(0),
278279
thumbnail: image().optional(),
279280
featuredImage: image().optional(),
280281
draft: z.boolean().optional().default(false),

src/content/use-cases/bring-connectivity-workflows.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ subtitle: "Seamless integration with your current infrastructure"
44
description: "From protecting your app with a global proxy to creating CNAME's or using OTel for detailed end-to-end observability, Datum is designed to work the way you work. Leverage existing Kubernetes resource patterns."
55
slug: "bring-connectivity-workflows"
66
draft: false
7+
order: 7
78
meta:
89
title: "Bring Connectivity into Your Existing Workflows | Datum"
910
description: "Integrate Datum's connectivity solutions seamlessly with your existing workflows, Kubernetes patterns, and observability tools."

src/content/use-cases/control-traffic-patterns.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ subtitle: "Programmatic traffic management and shaping"
44
description: "Shape, prioritize, and isolate traffic programmatically. Datum gives you fine-grained control without the need for hardware or middleboxes."
55
slug: "control-traffic-patterns"
66
draft: false
7+
order: 2
78
meta:
89
title: "Control Traffic Patterns Without Hardware | Datum"
910
description: "Shape, prioritize, and isolate traffic programmatically with Datum's software-defined networking approach."

src/content/use-cases/embed-private-connectivity.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ subtitle: "Simple APIs and SDKs for seamless integration"
44
description: "With simple APIs and SDKs, Datum makes it easy to embed private connectivity directly into your apps—no custom tunnels or brokers required."
55
slug: "embed-private-connectivity"
66
draft: false
7+
order: 3
78
meta:
89
title: "Embed Private Connectivity into Your Applications | Datum"
910
description: "Integrate private connectivity directly into your applications using Datum's simple APIs and SDKs."

src/content/use-cases/interact-privately-alt-clouds.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ subtitle: "Extend private connectivity to AI platforms and SaaS ecosystems"
44
description: "Extend private connectivity to AI platforms, SaaS ecosystems, and emerging alt clouds with the same consistency you expect from the public cloud."
55
slug: "interact-privately-alt-clouds"
66
draft: false
7+
order: 4
78
meta:
89
title: "Interact Privately with Alt Clouds | Datum"
910
description: "Connect securely to AI platforms, SaaS ecosystems, and emerging cloud providers with Datum's private connectivity."

src/content/use-cases/leverage-public-cloud-onramps.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ subtitle: "Seamless integration with major cloud providers"
44
description: "Datum integrates directly with major cloud on-ramps, turning them into seamless extensions of your Galactic VPC."
55
slug: "leverage-public-cloud-onramps"
66
draft: false
7+
order: 5
78
meta:
89
title: "Leverage Public Cloud On-Ramps | Datum"
910
description: "Integrate with major cloud on-ramps and turn them into seamless extensions of your Galactic VPC."

src/content/use-cases/take-vpc-everywhere.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ subtitle: "Unified networking across all environments"
44
description: "Cloud networking is powerful, yet fragmented. With Datum's Galactic VPC, we smooth out the rough edges and help you leverage programmatic networking wherever you need it, from public clouds to connected cars."
55
slug: "take-vpc-everywhere"
66
draft: false
7+
order: 6
78
meta:
89
title: "Take Your VPC Everywhere | Datum"
910
description: "Extend your VPC connectivity across public clouds, edge locations, and IoT devices with Datum's Galactic VPC."

src/pages/use-cases.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ import GlobalSection from '@components/GlobalSection.astro';
1111
1212
const page = await getCollectionEntry('pages', 'use-cases');
1313
14-
// Get all use cases from the collection
14+
// Get all use cases from the collection and sort by order
1515
const useCases = await getCollection('useCases', ({ data }) => !data.draft);
16+
useCases.sort((a, b) => (a.data.order || 0) - (b.data.order || 0));
1617
1718
// SEO
1819
const fm = page.data;

src/pages/use-cases/[slug].astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const allUseCaseEntries = await getCollection('useCases');
3939
// Get navigation articles (sorted by title)
4040
const sortedUseCases = allUseCaseEntries
4141
.filter((uc) => !uc.data.draft)
42-
.sort((a, b) => a.data.title.localeCompare(b.data.title));
42+
.sort((a, b) => (a.data.order || 0) - (b.data.order || 0));
4343
4444
const currentIndex = sortedUseCases.findIndex((uc) => uc.id === entry.id);
4545
const previousArticle = currentIndex > 0 ? sortedUseCases[currentIndex - 1] : undefined;

src/v1/styles/components.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@
367367
}
368368

369369
.uc-card-link {
370-
@apply absolute top-0 left-0 h-full w-full overflow-hidden -indent-[100%];
370+
@apply absolute top-0 left-0 h-full w-full overflow-hidden -indent-[9999px];
371371
}
372372
}
373373

0 commit comments

Comments
 (0)