Pages
Skill level: Beginner to edit, light code to add a page made of sections
Every page has two parts: a route file in src/pages/[...lang]/, which decides which sections the page shows and in what order, and a content file in src/content/, which holds its title, SEO fields, page header, and named blocks. You edit the content file; you only touch the route to add, remove, or reorder sections.
Every Page And Its File
Paths are for English. The other languages use the same files in french/ and arabic/, served under /fr/ and /ar/ (for example /fr/pricing/).
Homepages
| Page | URL | Route (src/pages/[...lang]/) | Content (src/content/) |
|---|---|---|---|
| Main homepage (drains and sewer) | / | index.astro | homepage/english/-index.md |
| Residential plumbing | /home-residential/ | home-residential.astro | homepage/english/home-residential.md |
| Water heaters and water quality | /home-water/ | home-water.astro | homepage/english/home-water.md |
| Commercial plumbing | /home-commercial/ | home-commercial.astro | homepage/english/home-commercial.md |
The three extra homepages are examples: they ship with robots: "noindex, follow" and excludeFromSitemap: true. See Homepages to pick one as your home.
Services, Prices, And Booking
| Page | URL | Route | Content |
|---|---|---|---|
| Services | /services/ | services/index.astro | services/english/-index.md |
| Service page | /services/<file>/ | services/[single].astro | services/english/<file>.md |
| Commercial sectors | /industries/ | industries/index.astro | industries/english/-index.md |
| Sector page | /industries/<file>/ | industries/[single].astro | industries/english/<file>.md |
| Pricing and maintenance plans | /pricing/ | pricing.astro | pricing/english/-index.md |
| How it works | /how-it-works/ | how-it-works.astro | pages/english/how-it-works.md |
| Emergency | /emergency/ | emergency.astro | pages/english/emergency.md |
| Book | /book/ | book.astro | pages/english/book.md and sections/english/booking-section.md |
| Booking sent | /book/thanks/ | book/thanks.astro | pages/english/book-thanks.md |
| Service areas | /areas/ | areas/index.astro | areas/english/-index.md |
| Area page | /areas/<file>/ | areas/[single].astro | areas/english/<file>.md |
Company And Trust
| Page | URL | Route | Content |
|---|---|---|---|
| About | /about/ | about.astro | about-us/english/-index.md |
| Team | /team/ | team/index.astro | team/english/-index.md and one file per member |
| Reviews | /reviews/ | reviews.astro | pages/english/reviews.md, reviews from reviews/english/ |
| Projects | /projects/ | projects/index.astro | projects/english/-index.md |
| Project page | /projects/<file>/ | projects/[single].astro | projects/english/<file>.md |
| Our guarantee | /guarantee/ | guarantee.astro | guarantee/english/-index.md |
| Careers | /careers/ | careers/index.astro | careers/english/-index.md |
| Job page | /careers/<file>/ | careers/[single].astro | careers/english/<file>.md |
Help, Offers, And Blog
| Page | URL | Route | Content |
|---|---|---|---|
| FAQ | /faq/ | faq.astro | faq/english/-index.md |
| Contact | /contact/ | contact.astro | contact/english/-index.md and sections/english/contact-section.md |
| Specials and financing | /specials/ | specials.astro | pages/english/specials.md |
| Referral | /referral/ | referral.astro | pages/english/referral.md |
| Blog | /blog/, /blog/page/<n>/ | blog/index.astro, blog/page/[slug].astro | blog/english/-index.mdx |
| Blog post | /blog/<file>/ | blog/[single].astro | blog/english/<file>.mdx |
| Category and tag lists | /blog/category/<name>/, /blog/tag/<name>/ | blog/category/, blog/tag/ | built from the posts’ categories and tags |
| RSS feed | /blog/rss.xml | blog/rss.xml.ts | built from the posts |
Text Pages, Tools, And Files
| Page | URL | Route | Content |
|---|---|---|---|
| Privacy policy, terms, cookie policy, cancellation policy | /privacy-policy/, /terms-conditions/, /cookie-policy/, /cancellation-policy/ | [page].astro | pages/english/<file>.md |
| Shortcode examples | /components/ | [page].astro | pages/english/components.mdx |
| Layout gallery | /elements/ | elements.astro | pages/english/elements.md |
| 404 | any missing URL | 404.astro (and src/pages/404.astro) | sections/english/not-found-section.md |
| AI and search files | /llms.txt, /llms-full.txt, /robots.txt, <page>.md | llms.txt.ts, llms-full.txt.ts, src/pages/robots.txt.ts, src/pages/[...path].md.ts | built from your content and config.toml. See SEO & AI Visibility |
Every file in src/content/pages/ becomes a page at /<file name>/ through [page].astro, except elements, book, book-thanks, how-it-works, reviews, specials, emergency, and referral, which have their own routes.
Four older addresses are kept as redirects in astro.config.mjs: /testimonials/ goes to /reviews/, /customers/ to /projects/, /security/ to /guarantee/, and /solutions/ to /industries/. You can delete those lines on a new site.
Each collection (services, areas, industries, projects, reviews, careers, team, blog) is explained in Collections.
Sample Pages To Replace Or Remove
Plumbo ships with a full sample business. Before launch:
| Replace with your own | Where |
|---|---|
| The 10 sample services, their prices, and add-ons | src/content/services/, src/content/pricing/ |
| The 4 sample service areas (fictional places and ZIP codes) | src/content/areas/ and the areas menus |
| The 22 sample reviews and the rating figures | src/content/reviews/, src/content/sections/*/trust-strip.md |
| The 6 sample projects and their photos | src/content/projects/ |
| The 8 team members, 6 job openings, 6 posts, and 2 authors | team/, careers/, blog/, author/ |
| The 6 commercial sectors | src/content/industries/ (or remove the pages) |
| The sample coupons, financing terms, and maintenance plans | src/content/pages/english/specials.md, src/content/pricing/ |
| The placeholder legal texts | privacy-policy.md, terms-conditions.md, cookie-policy.md, cancellation-policy.md in src/content/pages/ |
| Remove if you don’t need it | Files |
|---|---|
| The three extra homepages | home-residential.astro, home-water.astro, home-commercial.astro and their files in src/content/homepage/ |
The shortcode examples /components/ | src/content/pages/english/components.mdx (and each other language folder) |
The layout gallery /elements/ | src/pages/[...lang]/elements.astro and pages/english/elements.md (and each other language folder) |
| Specials, referral, commercial sectors | Their route files and content files |
Sample facts are marked # sample in the content files: search the project for # sample to find them all. The job openings in particular feed JobPosting data for search engines: keep only real, open roles.
The Pages menu in the header (in each src/config/menu.<language>.json) lists every page of the theme. Remove it, or set its "enable" to false in every file, before launch. See Menus.
Page Header
Most inner pages open with a page header. Its title is the page’s title; everything else is in a pageHeader block of the page file:
title: "Questions before you call a plumber"pageHeader: breadcrumb: true eyebrow: "" description: "Short answers about prices, emergencies, the visit, and our warranty. Each one links to the detail." image: "/images/steps/inspect.jpg" options: layout: "split" # default | intro | centered | splitThe four layouts and all fields are in Section Layouts. The about page and the homepages open with their own hero section instead. Service pages use the service hero, whose look follows the service’s template.
Fields Every Page Accepts
These frontmatter fields work on page and entry files. src/content/_file_format.md explains most of them; the full list is the page schema in src/content.config.ts.
| Field | What it does |
|---|---|
title, description | The page title and summary |
metaTitle, metaDescription | Replace the title and description in search results only |
image, imageDark | Social preview image for this page (and the photo on cards, for entries); imageDark is an optional dark mode version |
draft | true leaves the page out of the built site (it still shows in npm run dev) |
customSlug | A different URL segment than the file name. Use the same value in every language |
canonical, robots, keywords | SEO overrides |
excludeFromSitemap, excludeFromAi | Leave the page out of the sitemap, or out of llms.txt and the Markdown copies |
excludeFromCollection | Keep an entry’s page but leave it out of lists (services, commercial sectors, projects) |
disableTagline | Don’t add the site tagline to this page’s title |
date, updated | Publish date and last meaningful edit, used in structured data and the sitemap |
headerLayout | default, simple, centered, or utility: another header on this page. See Header & Mobile Bar |
footerLayout | default, minimal, large, or columns: another footer on this page. See Footer & CTA Band |
primaryCta | The main button on this page only (label, url, announcement) |
| Named blocks | pageHeader, ctaSection, questionsSection, … See Sections |
Add A Page
For policies, guides, or any page of text. Plumbo renders every file in src/content/pages/ as a page.
-
Copy
src/content/pages/english/cancellation-policy.mdto a new file, for examplesrc/content/pages/english/pet-policy.md. The file name becomes the URL:/pet-policy/. -
Change
title,description,date, and the Markdown body. ThecontentPageblock adds an optionalnoticeabove the text and asummaryticket of key facts beside it; delete it if you don’t need them. -
Create the other language versions, such as
src/content/pages/french/, with the same file name. -
Add a link to it in each
src/config/menu.<language>.json, for example in the footer’s Legal column.
For landing pages that reuse Plumbo’s sections. The extra homepages are the model: their route reads one file from the homepage collection and renders its sections in order.
-
Copy
src/pages/[...lang]/home-water.astrotosrc/pages/[...lang]/spring-offer.astro. The file name becomes the URL:/spring-offer/. -
In the new route, change
"home-water"ingetEntryCTM("homepage", ...)to"spring-offer". List the blocks you use inconst { ... } = entry?.data, and edit the section lines inside<Base>to the sections you want, top to bottom. A section you add needs its import at the top of the file, like the ones already there. -
Create
src/content/homepage/english/spring-offer.mdwith atitle, ametaDescription, and one named block per section, each withenable: true. Copy blocks from the other homepage files. -
Create the other language files, such as
src/content/homepage/french/, add the page to the menus, and runnpm run astro-check.
Don’t build a section page from a file in src/content/pages/: every file there is also built as a text page at the same URL.
Remove A Page
- Delete its route file in
src/pages/[...lang]/and its content (file or folder) insrc/content/, in every language. - Remove its links from each
src/config/menu.<language>.jsonand any content file or button that links to it (search the project for the URL, for example/referral/). - Run
npm run astro-check, thennpm run build, to make sure nothing still points to it.
To hide a page without deleting it, set draft: true in its content file.
Do It With AI
Remove the pages I don't need from my Plumbo site: [LIST, e.g. /specials/, /referral/,/home-commercial/]. For each one, delete its route in src/pages/[...lang]/ and its content insrc/content/ (every language), remove every link to it from each src/config/menu.<language>.jsonand from content files, then run npm run astro-check and npm run build and fix anythingthat still points to it.