Skip to content

Commit 76478eb

Browse files
committed
feat: beginning to DRY
1 parent 5d37125 commit 76478eb

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

src/config.ts

+25
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { ContentTypes } from '@data/content-types';
2+
13
export const BASE_SITE_URL = 'https://mikebifulco.com';
24

35
const config = {
@@ -58,4 +60,27 @@ const config = {
5860
siteUrl: BASE_SITE_URL,
5961
};
6062

63+
export const ContentDefinitions = {
64+
[ContentTypes.Post]: {
65+
directory: 'src/data/posts',
66+
contentType: ContentTypes.Post,
67+
path: 'post',
68+
description: 'Blog posts about design, development, and other topics',
69+
},
70+
[ContentTypes.Newsletter]: {
71+
directory: 'src/data/newsletters',
72+
contentType: ContentTypes.Newsletter,
73+
path: 'newsletter',
74+
description:
75+
'Weekly newsletter about design, development, and other topics',
76+
},
77+
[ContentTypes.Article]: {
78+
directory: 'src/data/external-references',
79+
contentType: ContentTypes.Article,
80+
path: 'article',
81+
description:
82+
'External reference articles about design, development, and other topics',
83+
},
84+
};
85+
6186
export default config;

0 commit comments

Comments
 (0)