Content Collections & Routes
Veltro defines its collections in src/content.config.ts using Astro’s glob loader and schemas from src/sections.schema.ts. In the Tina edition, each collection is an entry at /admin/. In the Sanity edition, the same content is documents in the Studio, and src/content/ doesn’t exist.
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, team, testimonials, case studies, industries, and careers are in [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 file. Use customSlug on supported entries to override the generated URL segment. In the Tina edition, some of these files are .mdx where the Astro edition has .md.
Add A New Entry
Copy an existing file in the language folder, give it a new name, and edit it. The file name becomes the address unless you set customSlug. A new entry exists only in that language, so add it to each language folder.
A new entry with only a title won’t break the site, and it builds. Its card or page shows what you filled in, and images and other fields stay empty until you add them, so fill them in before you publish.
Add a date to a blog post too. A post with no date shows no date and comes first in the blog list.
Frontmatter Options
The shared page schema supports title, subTitle, description, image, date, author, categories, tags, draft, metaTitle, metaDescription, customSlug, canonical URL, robots, keywords, excludeFromSitemap, excludeFromCollection, excludeFromAi, and section override blocks. Collection-specific fields are defined beside each collection in src/content.config.ts.