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

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/donate/).

Homepages

PageURLRoute (src/pages/[...lang]/)Content (src/content/)
Multi-cause charity (main homepage)/index.astrohomepage/english/-index.md
Single emergency appeal/home-appeal/home-appeal.astrohomepage/english/home-appeal.md
Local community non-profit/home-community/home-community.astrohomepage/english/home-community.md

The two extra homepages are examples: they ship with robots: "noindex, follow" and excludeFromSitemap: true. See Homepages to pick one as your home.

Causes And Giving

PageURLRouteContent
Causes/causes/causes/index.astrocauses/english/-index.md
Cause page/causes/<file>/causes/[single].astrocauses/english/<file>.md
Donate/donate/donate.astrodonate/english/-index.md and sections/english/donate-section.md
Thank-you page/donate/thanks/donate/thanks.astropages/english/donate-thanks.md
Tribute gifts/tribute/tribute.astropages/english/tribute.md
Impact and transparency/impact/impact.astroimpact/english/-index.md

Guides: Causes & Campaigns, Donation Form, Giving Tiers & Receipt, Impact & Transparency.

Get Involved

PageURLRouteContent
Events/events/events/index.astroevents/english/-index.md
Event page/events/<file>/events/[single].astroevents/english/<file>.md
Add to calendar file/events/<file>.icsevents/[single].ics.tsbuilt from the event
Volunteer/volunteer/volunteer.astropages/english/volunteer.md and sections/english/volunteer-section.md
Fundraise for us/fundraise/fundraise.astropages/english/fundraise.md
Corporate partnerships/partners/partners.astropages/english/partners.md
Gallery/gallery/gallery.astrogallery/english/-index.md

Guides: Events & Calendar, Volunteer & Fundraise, Partners & Gallery.

About, Stories, And Help

PageURLRouteContent
About/about/about.astroabout-us/english/-index.md
Team/team/team/index.astroteam/english/-index.md and one file per member
Supporter voices/testimonials/testimonials.astropages/english/testimonials.md, quotes from reviews/english/
Careers/careers/careers/index.astrocareers/english/-index.md
Job page/careers/<file>/careers/[single].astrocareers/english/<file>.md
Stories/blog/, and /blog/page/<n>/ once there are more stories than blogPaginationblog/index.astro, blog/page/[slug].astroblog/english/-index.md
Story/blog/<file>/blog/[single].astroblog/english/<file>.mdx
Category and tag lists/blog/category/<name>/, /blog/tag/<name>/blog/category/, blog/tag/built from the stories’ categories and tags
RSS feed/blog/rss.xmlblog/rss.xml.tsbuilt from the stories
FAQ/faq/faq.astrofaq/english/-index.md
Contact/contact/contact.astrocontact/english/-index.md and sections/english/contact-section.md

The stories live in the blog folder and keep the /blog/ URL; the menus call them Stories. See Stories.

Text Pages, Tools, And Files

PageURLRouteContent
Privacy policy, terms, cookie policy, donation and refund policy, safeguarding policy/privacy-policy/, /terms-conditions/, /cookie-policy/, /donation-policy/, /safeguarding-policy/[page].astropages/english/<file>.md
Shortcode examples/components/[page].astropages/english/components.mdx
Layout gallery/elements/elements.astropages/english/elements.md
404any missing URL404.astro (and src/pages/404.astro)sections/english/not-found-section.md
AI and search files/llms.txt, /llms-full.txt, /robots.txt, <page>.mdllms.txt.ts, llms-full.txt.ts, src/pages/robots.txt.ts, src/pages/[...path].md.tsbuilt 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, volunteer, donate-thanks, testimonials, tribute, fundraise, and partners, which have their own routes.

Each collection (causes, events, reviews, careers, team, stories, and the rest) is explained in Collections.

Sample Pages To Replace Or Remove

Givo ships with a full sample charity. Every goal, amount, quote, name, and figure in it is a sample. Before launch:

Replace with your ownWhere
The 9 sample causes, with their goals, amounts raised, donors, deadlines, and updatessrc/content/causes/, and the Causes menu in each src/config/menu.<language>.json
The currency, preset amounts, monthly tiers, and impact mapsrc/content/donate/
The 7 sample events and their datessrc/content/events/
The spending split, results, reports, and factssrc/content/impact/, and the gift split on the homepages
The 11 sample supporter quotessrc/content/reviews/
The 8 team members, 3 job openings, 6 stories, and 3 authorsteam/, careers/, blog/, author/
The partner names, sponsorship levels, and gallery photospages/english/partners.md, gallery/english/-index.md
The placeholder legal textsprivacy-policy.md, terms-conditions.md, cookie-policy.md, donation-policy.md, safeguarding-policy.md in src/content/pages/
Remove if you don’t need itFiles
The two extra homepageshome-appeal.astro, home-community.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)
Tribute, partners, gallery, careersTheir route files and content files

Sample facts are marked # sample in the content files: search the project for # sample to find them all, and see IMAGE-CREDITS.md for every sample photo. The job openings 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.

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:

src/content/causes/english/-index.md
title: "Current appeals"
pageHeader:
breadcrumb: true
badge:
label: "Current appeals"
icon: "Sprout"
tone: "green" # green | gold | amber | forest
description: "Every open appeal, with its goal, what has been raised so far, and what a gift pays for."
summary: false
options:
layout: "default" # default | intro | split | media

The four layouts and all fields are in Section Layouts. The legal pages use intro. Cause and event pages build their header from the cause or event file, in the media layout. The homepages open with their hero section instead.

Some pages also have a jumpNav list (label and anchor) for the “On this page” links in the header, as on /donate/ and /team/. Each anchor is the id of a section further down the page.

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.

FieldWhat it does
title, descriptionThe page title and summary
metaTitle, metaDescriptionReplace the title and description in search results only
image, imageDarkSocial preview image for this page (and the photo on cards, for entries); imageDark is an optional dark mode version
drafttrue leaves the page out of the built site (it still shows in npm run dev)
customSlugA different URL segment than the file name. Use the same value in every language
canonical, robots, keywordsSEO overrides
excludeFromSitemap, excludeFromAiLeave the page out of the sitemap, or out of llms.txt and the Markdown copies
excludeFromCollectionKeep an entry’s page but leave it out of lists
disableTaglineDon’t add the site tagline to this page’s title
date, updatedPublish date and last meaningful edit, used in structured data and the sitemap (on the legal pages, date is the “Last updated” line)
headerLayoutdefault, centered, or utility: another header on this page. See Header
footerLayoutdefault, minimal, or large: another footer on this page. See Footer
primaryCtaThe main button on this page only (label, url, announcement: link, hide, or keep)
Named blockspageHeader, ctaSection, questionsSection, … See Sections

Add A Page

For policies, guides, or any page of text. Givo renders every file in src/content/pages/ as a page.

  1. Copy src/content/pages/english/safeguarding-policy.md to a new file, for example src/content/pages/english/complaints-policy.md. The file name becomes the URL: /complaints-policy/.

  2. Change title, description, date, and the Markdown body. The contentPage block adds an optional notice above the text and a summary box of key facts beside it; delete what you don’t need.

  3. Create the other language versions, in src/content/pages/french/ and src/content/pages/arabic/, with the same file name.

  4. Add a link to it in each src/config/menu.<language>.json, for example in the footer’s Legal column.

Remove A Page

  1. Delete its route file in src/pages/[...lang]/ and its content (file or folder) in src/content/, in every language.
  2. Remove its links from each src/config/menu.<language>.json and any content file or button that links to it (search the project for the URL, for example /tribute/).
  3. Run npm run astro-check, then npm run build, to make sure nothing still points to it.

To hide a text page or an entry without deleting it, set draft: true in its content file.

Do It With AI

Remove the pages I don't need from my Givo site: [LIST, e.g. /partners/, /careers/,
/home-community/]. For each one, delete its route in src/pages/[...lang]/ and its content in
src/content/ (every language), remove every link to it from each src/config/menu.<language>.json
and from content files, then run npm run astro-check and npm run build and fix anything
that still points to it.
Type something to search...