// Static content index - generated from WordPress migration
export const blogPosts = Object.entries(
  import.meta.glob<{ default: any; frontmatter: Record<string, any> }>('../content/blog/*.md', { eager: true })
).map(([path, mod]) => ({
  slug: path.split('/').pop()?.replace('.md', '') || '',
  Content: mod.default,
  ...(mod.frontmatter || {}),
}))

export const testimonials = Object.entries(
  import.meta.glob<{ default: any; frontmatter: Record<string, any> }>('../content/testimonials/*.md', { eager: true })
).map(([path, mod]) => ({
  slug: path.split('/').pop()?.replace('.md', '') || '',
  ...(mod.frontmatter || {}),
}))

export const pages = Object.entries(
  import.meta.glob<{ default: any; frontmatter: Record<string, any> }>('../content/pages/*.md', { eager: true })
).map(([path, mod]) => ({
  slug: path.split('/').pop()?.replace('.md', '') || '',
  Content: mod.default,
  ...(mod.frontmatter || {}),
}))
