Content Collections & Routes
Veltro defines its collections in src/content.config.ts using Astro’s glob loader and schemas from src/sections.schema.ts.
Main Collections
- pages
- blog
- services
- portfolio
- case studies
- industries
- team
- careers
- testimonials
- homepage, sections, about, awards, FAQ, pricing, contact, and author
Folder names for blog, services, portfolio, testimonials, case studies, and industries can be changed through settings in config.toml. If you rename one, follow the source comment and update the content folder, route folder, and collection registration together.
Route Model
src/pages/[...lang]/[page].astrorenders entries fromsrc/content/pages/.- Dedicated list and single routes render blog, services, portfolio, case studies, industries, team, and careers.
- Blog has category, tag, and paginated routes.
- Portfolio has category and paginated routes.
- Services and case studies have paginated routes.
Collection Entry Examples
src/content/blog/english/post-1.mdxsrc/content/services/english/service-01.mdxsrc/content/portfolio/english/01.mdxsrc/content/case-studies/english/case-study-1.mdxsrc/content/industries/english/industry-1.mdxsrc/content/team/english/team-1.mdsrc/content/careers/english/career-1.mdList-page settings live in each collection’s <language>/-index.md. Use customSlug on supported entries to override the generated URL segment.
Frontmatter Options
The shared page schema supports title, subtitle, description, image, date, author, categories, tags, draft, customSlug, canonical URL, robots, keywords, sitemap exclusion, collection exclusion, and section override blocks. Collection-specific fields are defined beside each collection in src/content.config.ts.