mirror of
https://github.com/LukeHagar/Sveltey.git
synced 2025-12-06 12:47:44 +00:00
adjusted glob
This commit is contained in:
@@ -11,7 +11,7 @@ export interface BlogPost {
|
||||
}
|
||||
|
||||
// Get all blog post files
|
||||
const allPostFiles = import.meta.glob('/src/lib/posts/*.md');
|
||||
const allPostFiles = import.meta.glob('$lib/posts/*.md');
|
||||
|
||||
// Parse frontmatter and extract metadata only
|
||||
const parsePostMetadata = async (filename: string, module: any): Promise<BlogPost> => {
|
||||
|
||||
Reference in New Issue
Block a user