Skip to content

Attorneys

Attorney content is stored in src/content/attorneys. The theme uses that collection to render the attorney listing and individual attorney profile pages.

  • src/content/attorneys
  • src/pages/attorneys/index.astro
  • src/pages/attorneys/[slug].astro
  • src/layouts/AttorneyLayout.astro
  • src/components/cards/AttorneyCard.astro
  • src/assets/images/attorneys
  • src/content.config.ts

The index page queries attorney entries and renders cards. The dynamic [slug].astro route generates one profile page per attorney. AttorneyLayout.astro controls the profile page structure. AttorneyCard.astro controls listing cards.

Slugs usually come from file names or explicit content IDs depending on the content collection setup. Check src/content.config.ts for the exact rule.

Portrait images belong in src/assets/images/attorneys when they are imported and optimized.

If attorney entries reference practice areas, keep references aligned with the actual practice-area slugs. Invalid references can cause broken links or build errors if the schema validates them.