To build a consultant website with Astro, create a small set of static pages (home, services, case studies, about, insights and contact), keep services and case studies in content collections so each gets its own page, and add a booking link or lazy-loaded scheduler instead of a heavy widget on every page. Astro ships no JavaScript by default, so the site loads fast, hosts for free on a static host, and stays easy to update between client projects.
Key Takeaways
- A consultant website sells trust: specific services, real case studies with outcomes, and a clear way to book a call.
- Model services and case studies as content collections so every one gets an indexable page.
- Load scheduling widgets only on the contact page, or behind a click, to keep the rest of the site light.
- Use
ProfessionalServiceorPersonstructured data with facts that appear on the page.- Everything can be static; a form backend handles leads without a server.
What a consultant website needs
Prospective clients visit a consultant’s site to answer three questions: can this person solve my problem, have they done it before, and how do I start. The page set follows from that.
| Page | Answers | Key content |
|---|---|---|
| Home | What do you do and for whom | One-line positioning, top services, proof, call to action |
| Services | What exactly can I buy | One page per service, scope, typical timeline, how engagements start |
| Case studies | Have you done this before | Client context, problem, approach, measured outcome |
| About | Why you | Background, method, credentials you can verify |
| Insights | Do you know the field | Articles that answer the questions clients ask |
| Contact | How do I start | Short form, booking link, response time |
Keep the navigation to these. A consultant site that looks like an agency site with fifteen menu items makes a solo practice look less focused, not bigger.
Set up the project and layout
Start from the minimal template and add a shared layout:
npm create astro@latest -- --template minimal consulting-site
cd consulting-site
npx astro add sitemap
---
// src/layouts/Base.astro
import Header from '../components/Header.astro';
import Footer from '../components/Footer.astro';
interface Props {
title: string;
description: string;
}
const { title, description } = Astro.props;
---
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>{title}</title>
<meta name="description" content={description} />
<link rel="canonical" href={new URL(Astro.url.pathname, Astro.site)} />
</head>
<body>
<Header />
<main><slot /></main>
<Footer />
</body>
</html>
Put a “Book a call” link in the header so it’s one click from every page. The project structure docs explain where layouts, components and pages live.
Model services and case studies
Services and case studies change more often than the design. Keeping them as content collections means a new engagement is a new Markdown file, and the services page, home page and related links update on the next build.
// src/content.config.ts
import { defineCollection, reference } from 'astro:content';
import { glob } from 'astro/loaders';
import { z } from 'astro/zod';
const services = defineCollection({
loader: glob({ pattern: '**/*.md', base: './src/content/services' }),
schema: z.object({
title: z.string(),
summary: z.string().max(160),
order: z.number(),
startingAt: z.string().optional(), // e.g. "Fixed-fee audit" or a price you publish
}),
});
const caseStudies = defineCollection({
loader: glob({ pattern: '**/*.md', base: './src/content/case-studies' }),
schema: ({ image }) =>
z.object({
title: z.string(),
client: z.string(),
industry: z.string(),
services: z.array(reference('services')),
outcome: z.string(), // one sentence, with a number only if the client agreed to share it
cover: image().optional(),
date: z.coerce.date(),
publishedWithPermission: z.literal(true),
}),
});
export const collections = { services, caseStudies };
The publishedWithPermission: z.literal(true) field is a small guard: a case study can’t build unless someone confirmed the client agreed to be named. If clients want anonymity, set client to a description such as “Mid-size logistics company” instead.
Each service page lists the case studies that reference it:
---
// src/pages/services/[id].astro
import { getCollection, render } from 'astro:content';
import Base from '../../layouts/Base.astro';
export async function getStaticPaths() {
const services = await getCollection('services');
return services.map((service) => ({ params: { id: service.id }, props: { service } }));
}
const { service } = Astro.props;
const { Content } = await render(service);
const proof = await getCollection('caseStudies', ({ data }) =>
data.services.some((s) => s.id === service.id),
);
---
<Base title={`${service.data.title} | Jane Doe Consulting`} description={service.data.summary}>
<h1>{service.data.title}</h1>
<Content />
{proof.length > 0 && (
<section>
<h2>Related case studies</h2>
<ul>{proof.map((c) => <li><a href={`/case-studies/${c.id}/`}>{c.data.title}</a>: {c.data.outcome}</li>)}</ul>
</section>
)}
<a href="/contact/">Talk about {service.data.title.toLowerCase()}</a>
</Base>
That link between a service and its proof is the most persuasive thing on a consultant website. The content collections guide covers reference() and filtering in more detail.
Write case studies that convert
A case study page follows a short, predictable structure that clients can skim:
- Context. Who the client is, in one or two sentences.
- Problem. What wasn’t working, in the client’s terms.
- Approach. What you did, in the order you did it.
- Outcome. What changed. Use numbers only when they’re real and the client agreed to share them.
- Quote. A short, attributed quote, only if the client actually said it.
Keep claims modest and verifiable. A prospective client who calls a reference and hears the same story is worth more than an impressive percentage nobody can back up.
Add booking without slowing the site
Scheduling tools like Cal.com and Calendly offer inline embeds, but those embeds load their own scripts and iframes. Putting one in the footer of every page adds weight everywhere. Two lighter options:
- A plain link to your booking page. Zero JavaScript, works everywhere, and most visitors are happy to open a new tab.
- An embed on the contact page only, loaded lazily so it doesn’t block the page:
---
// src/components/BookingEmbed.astro
const { src } = Astro.props;
---
<div class="booking">
<iframe
src={src}
title="Book a 30-minute intro call"
loading="lazy"
width="100%"
height="700"
style="border: 0"
></iframe>
<p><a href={src}>Open the booking page in a new tab</a> if the calendar doesn't load.</p>
</div>
loading="lazy" tells the browser to wait until the iframe is near the viewport. The fallback link covers ad blockers and privacy settings that block third-party frames. If the embed needs a script rather than an iframe, load it in a component’s <script> tag on that one page.
Capture leads with a static form
Not everyone is ready to book a call. A short form with three or four fields (name, email, company, what they need) catches the rest. Post it to a form backend so the site stays static:
---
// src/pages/contact.astro
import Base from '../layouts/Base.astro';
import BookingEmbed from '../components/BookingEmbed.astro';
---
<Base title="Contact | Jane Doe Consulting" description="Book an intro call or send a short note about your project.">
<h1>Start a conversation</h1>
<form method="POST" action="https://forms.example.com/f/your-form-id">
<label>Name <input name="name" required autocomplete="name" /></label>
<label>Email <input name="email" type="email" required autocomplete="email" /></label>
<label>What do you need help with? <textarea name="message" rows="5" required></textarea></label>
<button type="submit">Send</button>
</form>
<p>I reply within two working days.</p>
<BookingEmbed src="https://cal.example.com/jane/intro" />
</Base>
Say how fast you reply, and keep that promise. Our static contact forms guide compares backends and spam protection.
SEO for a consultant website
Consultants usually win on specific, lower-volume searches: a service plus an industry or a location. Structure the site so each of those has a page.
- One page per service, with the service name in the title and H1.
- Industry or location pages only when you have real experience and something different to say on each.
- Insights articles that answer the questions clients ask in first calls. These are what AI assistants and search engines quote.
- Structured data that matches the page. A solo consultant can use
Personon the about page; a firm can useProfessionalServicewith its address and service area. The LocalBusiness schema guide shows the JSON-LD pattern in Astro.
Add @astrojs/sitemap (already installed above) and set site in astro.config.mjs so canonical URLs and the sitemap use your domain. The Astro deploy guides cover hosting once the pages are ready.
Start from a consultant theme
If you’d rather adapt a finished design, the Professional Services category is one of our largest. It includes consulting sites such as Advisor, with team and pricing pages for small firms, and Authority, built for independent experts with services and blog pages. Both are static Astro projects, so the collections and booking pattern above drop straight in.
FAQ
What pages should a consultant website have?
At minimum: a home page with clear positioning, one page per service, case studies, an about page and a contact page with a booking option. An insights section helps with search and shows expertise, but only add it if you’ll publish regularly.
Is Astro a good choice for a consultant website?
Yes. A consultant site is mostly static content that changes occasionally, which suits Astro’s static output. Pages load fast with no client-side JavaScript by default, and hosting on a free static tier is usually enough.
How do I add Calendly or Cal.com to an Astro site?
Link to your booking page from the header, and embed the scheduler only on the contact page. Use an iframe with loading="lazy" or the provider’s script in a component <script> tag, and include a plain link as a fallback.
How do I show case studies without naming clients?
Describe the client by industry and size instead of by name, for example “a regional logistics company with 200 staff”. Keep the problem, approach and outcome specific, and only quote people who agreed to be quoted.
Do I need a CMS for a consultant website?
Not usually. Services and case studies as Markdown files are easy to edit in a code editor or on GitHub. Add a Git-based CMS if someone without Git access needs to publish insights or update pages.