feat: website (#45)

This commit is contained in:
Darius Cepulis
2025-10-20 18:14:37 -05:00
committed by GitHub
parent 6d7325cedb
commit 7d2536a766
129 changed files with 7368 additions and 1054 deletions
+2 -2
View File
@@ -26,10 +26,10 @@ type GlobWithParserOptions = Parameters<typeof glob>[0] & {
* ```ts
* loader: globWithParser({
* base: './src/content/blog',
* pattern: '**\/*.md',
* pattern: '**\/*.mdx',
* generateId: ({ entry }) => entry.replace(/^\d{4}-\d{2}-\d{2}-/, ''),
* parser: async (entry, originalEntry) => {
* // entry.id = "my-post", originalEntry = "2024-01-01-my-post.md"
* // entry.id = "my-post", originalEntry = "2024-01-01-my-post.mdx"
* const date = extractDateFromFilename(originalEntry);
* entry.data.pubDate = date;
* return entry;