Skip to content

Commit

Permalink
feat: beginning to DRY
Browse files Browse the repository at this point in the history
  • Loading branch information
mbifulco committed Feb 16, 2025
1 parent 5d37125 commit 76478eb
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { ContentTypes } from '@data/content-types';

export const BASE_SITE_URL = 'https://mikebifulco.com';

const config = {
Expand Down Expand Up @@ -58,4 +60,27 @@ const config = {
siteUrl: BASE_SITE_URL,
};

export const ContentDefinitions = {
[ContentTypes.Post]: {
directory: 'src/data/posts',
contentType: ContentTypes.Post,
path: 'post',
description: 'Blog posts about design, development, and other topics',
},
[ContentTypes.Newsletter]: {
directory: 'src/data/newsletters',
contentType: ContentTypes.Newsletter,
path: 'newsletter',
description:
'Weekly newsletter about design, development, and other topics',
},
[ContentTypes.Article]: {
directory: 'src/data/external-references',
contentType: ContentTypes.Article,
path: 'article',
description:
'External reference articles about design, development, and other topics',
},
};

export default config;

0 comments on commit 76478eb

Please sign in to comment.