Skip to content

Commit f3bd443

Browse files
committed
chore: update tinyglobby glob pattern
1 parent 8642db8 commit f3bd443

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

modules/blog.ts

Lines changed: 1 addition & 3 deletions
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(`${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,9 +185,7 @@ export default defineNuxtModule({
185185
filename: 'blog/posts.ts',
186186
write: true,
187187
getContents: () => {
188-
console.log(allPosts.map(p => p.path))
189188
const posts = allPosts.filter(p => showDrafts || !p.draft)
190-
console.log(posts.map(p => p.path))
191189
return [
192190
`import type { BlogPostFrontmatter } from '#shared/schemas/blog'`,
193191
``,

0 commit comments

Comments
 (0)