Homepages
Files: src/pages/[...lang]/, src/content/homepage/english/ · Skill level: Beginner to edit, light code to reorder
Consultiz has three homepages, each in a multi-page and a one-page version:
| Homepage | URL | Route file (src/pages/[...lang]/) | Content file |
|---|---|---|---|
| Business consulting (main) | / | index.astro | src/content/homepage/english/-index.md |
| Corporate consulting | /corporate-consulting/ | corporate-consulting.astro | src/content/homepage/english/corporate-consulting.md |
| Tax and accounting | /tax-accounting/ | tax-accounting.astro | src/content/homepage/english/tax-accounting.md |
| One-page versions | /landing/home/, /landing/corporate-consulting/, /landing/tax-accounting/ | landing/*.astro | The same files as above |
Business Consulting Homepage (Main)
Sections, top to bottom, with the block name that overrides each one in src/content/homepage/english/-index.md:
| Section | Default content (src/content/sections/english/) | Page block |
|---|---|---|
| Banner slider | banner-slider.md | corporateBanner |
| About | about-centered.md | corporateAbout |
| Client logos | partner-marquee.md | customersSection |
| Services | services-centered.md | corporateServices |
| Industries | industries-stepper.md | corporateIndustries |
| Growth banner | growth-banner-full-width.md | corporateGrowthBanner |
| Why choose us | why-choose-section.md | corporateWhyChoose |
| Company growth statistics | growth-stats-section.md | corporateCompanyGrowth |
| Video testimonials | testimonial-video-showcase.md | corporateTestimonial |
| Latest articles | blog-grid-centered.md | corporateBlog |
| Contact form | contact-image-form.md | corporateContact |
| FAQ | faq-centered.md | corporateFaq |
| Awards strip | footer-awards.md | footerAwardSection |
It uses a transparent header over the banner and the homepage footer (footer-newsletter-grid.md). Its own fonts come from the --font-reference-* entries in src/config/fonts.json.
Corporate Consulting Homepage
Sections, with their block names in src/content/homepage/english/corporate-consulting.md:
| Section | Default content | Page block |
|---|---|---|
| Tabbed banner | banner-tabbed-slider.md | bannerSection |
| Business challenges | business-challenges-section.md | businessChallengesSection |
| Client logos | partner-marquee.md | customersSection |
| Growth banner card | growth-banner-card.md | growthBannerSection |
| Growth challenge | growth-challenge.md | growthChallengeSection |
| Business value | business-value.md | businessValueSection |
| Industries cover | industries-cover.md | industriesCoverSection |
| Client feedback | feedback-section.md | feedbackSection |
| Tax estimate | estimate-tax.md | estimateTaxSection |
| Latest articles | blog-grid-centered.md | latestArticlesSection |
| Newsletter | newsletter.md | newsletterSection |
| Awards strip | footer-awards.md | footerAwardSection |
It uses the “office” footer and the slim “info” top bar. The page file sets the number of articles with latestArticlesSection.options.limit (3).
Tax And Accounting Homepage
This homepage reads page-specific blocks from src/content/homepage/english/tax-accounting.md. Edit the text there directly:
| Section | Block in homepage/english/tax-accounting.md |
|---|---|
| Header (announcement strip, phone, contact button) | serviceHeader |
| Hero with video and consultation form | serviceHero |
| Statistics | serviceStats |
| Problems you solve | serviceProblems |
| Client logos (grid) | servicePartners (merges with partner-marquee.md) |
| Statement | serviceStatement |
| What you deliver | serviceDeliver |
| Industries | serviceIndustries |
| Quote banner | serviceQuote |
| Compliance | serviceCompliance |
| Process | serviceProcess |
| Tax calculator | serviceTaxCalculator |
| Testimonials | serviceTestimonials |
| Articles | serviceArticles |
| Contact and newsletter strip | serviceContactStrip |
| Awards strip | footerAwardSection |
The tax calculator’s income years are content too: serviceTaxCalculator.incomeYears lists them, newest first. Update the list each tax year; if you remove it, the calculator falls back to built-in years.
serviceTaxCalculator: incomeYears: ["2025–2026", "2024–2025", "2023–2024", "2022–2023"] # newest firstThe hero form and the newsletter strip have their own form settings: see Forms. serviceArticles.items takes enable, url, categoryUrl, and authorInitials per card, and serviceArticles.options.limit caps the list.
The One-Page Versions
The pages under /landing/ show the same sections and read the same content files as their multi-page homepage. The differences:
- The header menu has no dropdowns, and only the Contact link stays active.
- Their canonical link points to the multi-page version, so search engines treat them as copies.
If you don’t need them, delete src/pages/[...lang]/landing/ and remove the One Page group from the Home menu in menu.en.json and menu.fr.json.
Edit A Homepage
- Change text on every page that uses a section: edit the section file in
src/content/sections/english/. - Change text on one homepage only: add or edit its block in the homepage’s content file, with only the keys you want to change. See How Consultiz Works for the merge rules.
- Hide a section on one homepage: set
enable: falsein its block. - Reorder or remove sections: move or delete the component lines inside
<Base>in the route file.
Use Another Homepage As Your Main Homepage
-
Open the route of the homepage you want, for example
src/pages/[...lang]/corporate-consulting.astro, and copy the whole file. -
Paste it over
src/pages/[...lang]/index.astro. The route keeps reading its own content file (homepage/<language>/corporate-consulting.md, orhomepage/<language>/tax-accounting.mdfor tax and accounting), so no content needs to move. -
Delete the route you copied from, and the
landing/routes you no longer need. -
Update the Home menu in
src/config/menu.en.jsonandmenu.fr.json. -
Run
npm run astro-checkand open/to check the result.