Skip to content

Commit 8642db8

Browse files
committed
chore: change wrong tinyglobby glob pattern
1 parent 191e6a7 commit 8642db8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

modules/blog.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function resolveAuthors(authors: Author[], avatarMap: Map<string, string>): Reso
8585
* Resolves Bluesky avatars at build time.
8686
*/
8787
async function loadBlogPosts(blogDir: string, imagesDir: string): Promise<BlogPostFrontmatter[]> {
88-
const files: string[] = globSync(join(blogDir, '*.md'))
88+
const files: string[] = globSync(`${blogDir}/**/*.md`)
8989

9090
// First pass: extract raw frontmatter and collect all Bluesky handles
9191
const rawPosts: Array<{ frontmatter: Record<string, unknown> }> = []
@@ -185,7 +185,9 @@ export default defineNuxtModule({
185185
filename: 'blog/posts.ts',
186186
write: true,
187187
getContents: () => {
188+
console.log(allPosts.map(p => p.path))
188189
const posts = allPosts.filter(p => showDrafts || !p.draft)
190+
console.log(posts.map(p => p.path))
189191
return [
190192
`import type { BlogPostFrontmatter } from '#shared/schemas/blog'`,
191193
``,

0 commit comments

Comments
 (0)