Skip to content

Commit 3902829

Browse files
committed
Scaffold out downloads content in articles
1 parent 20cfa8b commit 3902829

217 files changed

Lines changed: 1031 additions & 226 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/content.config.ts

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -87,24 +87,6 @@ const caseStudiesCollection = defineCollection({
8787
),
8888
})
8989

90-
/**
91-
* Services
92-
*/
93-
const servicesCollection = defineCollection({
94-
loader: glob({ pattern, base: './src/content/services' }),
95-
schema: context =>
96-
withBreadcrumbTitleWarning(
97-
createBaseCollectionSchema(context).extend({
98-
category: z.string().optional(),
99-
deliverables: z.array(z.string()).optional(),
100-
duration: z.string().optional(),
101-
pricing: z.string().optional(),
102-
showToc: z.boolean().default(false),
103-
}),
104-
'services'
105-
),
106-
})
107-
10890
/**
10991
* Downloads
11092
*/
@@ -118,8 +100,6 @@ const downloadsCollection = defineCollection({
118100
fileSize: z.string().optional(),
119101
fileType: z.enum(['PDF', 'eBook', 'Whitepaper', 'Guide', 'Report', 'Template']),
120102
pages: z.number().optional(),
121-
readingTime: z.string().optional(),
122-
showToc: z.boolean().default(false),
123103
}),
124104
'downloads'
125105
),
@@ -139,6 +119,27 @@ const testFixtureCollection = defineCollection({
139119
),
140120
})
141121

122+
/**
123+
* =================================================================================
124+
*
125+
* Stand-Alone Content Collections
126+
*
127+
* =================================================================================
128+
*/
129+
130+
/**
131+
* Services
132+
*/
133+
const servicesCollection = defineCollection({
134+
loader: glob({ pattern, base: './src/content/services' }),
135+
schema: () =>
136+
z.object({
137+
title: z.string(),
138+
description: z.string(),
139+
isDraft: z.boolean().default(false),
140+
}),
141+
})
142+
142143
/**
143144
* =================================================================================
144145
*
Lines changed: 14 additions & 0 deletions
302 Bytes
302 Bytes
Lines changed: 14 additions & 0 deletions
302 Bytes
302 Bytes
Lines changed: 14 additions & 0 deletions
302 Bytes
302 Bytes

0 commit comments

Comments
 (0)