Skip to content
New: Customize your theme with an AI assistant. Read the guide

Homepage Variants

Files: src/pages/[...lang]/index.astro, src/pages/[...lang]/home-two.astro, src/content/sections/<language>/ · Skill level: Beginner

Veltro has two routed homepage layouts.

Home 01

  • Route: /
  • Page file: src/pages/[...lang]/index.astro
  • Page content: src/content/homepage/<language>/-index.md

Section order:

  1. Banner
  2. AboutOne
  3. ServicesSection
  4. PortfolioSection
  5. SolutionStepsSection
  6. TestimonialSection
  7. Customers
  8. CallToAction
  9. CaseStudiesSection
  10. IndustriesSection
  11. ContactSection
  12. BlogSection

Home 02

  • Route: /home-two/
  • Page file: src/pages/[...lang]/home-two.astro
  • Page content: src/content/homepage/<language>/home-two.md

Section order:

  1. BannerTwo
  2. RoadmapSection
  3. Customers
  4. ProcessSection
  5. ServicesSectionTwo
  6. PortfolioSectionTwo
  7. TestimonialSectionTwo
  8. VideoSection
  9. AwardSection
  10. TeamSection
  11. BlogSectionTwo

Editing Workflow

  1. Open the homepage route and identify its imported sections.
  2. Edit the matching file in src/content/sections/<language>/.
  3. Edit the Astro section only when the structure or design must change.

The homepage files hold the page’s title and search details.

  • Astro: the text you see comes from the section files. The section blocks in the homepage files, such as servicesSection, have no effect, because the routes don’t read them. To use one, pass it to the section in the route: <ServicesSection content={homepageContent?.data.servicesSection} />.
  • Tina: Home pages holds -index for Home 01 and home-two for Home 02. The routes read the blocks in these forms, so a block you fill in changes that section on that homepage only. See What Is Editable In Tina.
  • Sanity: Homepages holds Home 1 and Home 2, with the title and search details. The rows under Sections on this page have no effect there. Edit the section under Sections. See What Is Editable In Sanity.
Type something to search...