Docs · Content
Pages and words
Which file holds each page, where its words are, and what in the demo is made up.
Each page is a view in src/views/, and its words are in the translations under a key of its own. The files in src/pages/ only render a view.
| Page | View | Words under |
|---|---|---|
| SaaS homepage | HomeView.astro |
home |
| Portfolio homepage | PortfolioHomeView.astro |
portfolio |
| Pricing | PricingView.astro |
pricingPage, and plans for the plans |
| Projects | ProjectsIndexView.astro, ProjectView.astro |
projectsPage |
| Blog | BlogIndexView.astro, BlogPostView.astro |
blogPage |
| About | AboutView.astro |
about |
| Contact | ContactView.astro |
contact |
| Search | SearchView.astro |
search |
| Not found | NotFoundView.astro |
notFound |
search and notFound are Velocity’s own words, in src/i18n/ui.ts. To change one, add the same key to your translations file: a key there wins over ui.ts.
The band at the foot of every page takes its words from closing, or from closingContact when pricing is off. The page titles and descriptions for search engines are under meta.
What the demo makes up
The demo is Patchwork, a product that doesn’t exist. Replace these before you publish:
- the hero’s badge and the figures on the homepage and the About page;
- the plans and their prices (
plans); - the quotes on the homepage, and the names under them;
- the team on the About page;
- the email address in
site.config.ts; - the screenshot in the SaaS homepage’s tilted screen,
src/assets/fx/app.webp, and its description,home.hero.screenAlt.
Show only real quotes, figures and prices. Where you don’t have one yet, leave it out rather than keep the demo’s.
A new page
The velocity-add-page skill in .agents/skills/ walks through it: a view, the file in src/pages/, the route in nav.config.ts and the words in the translations.