// Tiny slug helper. Categories are admin-edited so we keep this simple
// and predictable rather than pulling in a slug library.

export function slugify(input: string): string {
  return input
    .toLowerCase()
    .trim()
    .replace(/[^a-z0-9\s-]/g, '')
    .replace(/\s+/g, '-')
    .replace(/-+/g, '-');
}
