The best Astro car dealer template turns your stock list into fast, searchable vehicle pages with clear photos, specs and price, and makes it easy for a buyer to call, book a test drive or ask about finance. Astro fits dealerships well because each vehicle page can be generated from a data feed at build time, and the finished pages load quickly on a phone at the roadside.
We sell Astro themes, including automotive ones, so weigh our picks accordingly. Below: what a dealer or garage site needs, free routes, an inventory pattern you can use in any theme, and a short list from our catalog.
Key Takeaways
- Car buyers browse stock first. Every vehicle needs its own page with photos, mileage, price and a contact button.
- Keep inventory in a JSON file or feed and generate vehicle and make pages from it with
getStaticPaths().- Rebuild on a schedule or on a webhook when stock changes, so sold cars disappear quickly.
Carstructured data with anOfferdescribes price and condition for search engines.- Our Transportation category holds 30 Astro themes, and around 30 themes across the catalog cover dealers, rentals, repair shops and detailing.
What a car dealer or automotive website actually needs
Automotive sites come in four flavours: dealers, rental companies, repair garages and detailers. A dealer site needs the most structure:
- Inventory listing with filters for make, body type and price, and sorting by price or mileage.
- Vehicle detail pages. A photo gallery, price, mileage, year, fuel, transmission, history notes and a reference number.
- Calls to action on every vehicle: call, message, book a test drive, and finance enquiry if you offer it.
- Trade-in and finance pages, where relevant and only with offers you actually provide.
- Location, hours and directions, often for both sales and service departments.
- Reviews from real customers.
Garages swap inventory for services and booking; rental companies swap it for a fleet with daily rates. The inventory pattern below works for both dealers and fleets.
Free routes to an Astro automotive site
Free automotive-specific Astro themes are rare. Your realistic options:
Adapt AstroWind
AstroWind is a free Tailwind CSS theme with hero, features, testimonial and contact sections. It works well for a repair garage or detailer, where the site is mostly services. A dealer needs inventory pages added on top.
Start from the minimal starter
If your stock comes from a feed, the inventory pages are the main work anyway, and a minimal base keeps the build simple:
# Terminal
npm create astro@latest -- --template minimal
Browse the official directory
The Astro themes directory has business themes from community authors that can be adapted. Check that image handling goes through astro:assets; vehicle galleries are heavy.
An inventory pattern that works in any theme
Most dealer management systems can export stock as JSON or CSV. Save the export as src/data/inventory.json and validate it with the file() loader:
[
{ "id": "stk-2041", "make": "Volvo", "model": "XC40", "year": 2023, "price": 31950, "mileage": 18400, "fuel": "Hybrid", "transmission": "Automatic", "body": "SUV", "status": "available" },
{ "id": "stk-2057", "make": "Toyota", "model": "Corolla", "year": 2022, "price": 21400, "mileage": 26100, "fuel": "Hybrid", "transmission": "Automatic", "body": "Hatchback", "status": "reserved" }
]
// src/content.config.ts
import { defineCollection } from 'astro:content';
import { file } from 'astro/loaders';
import { z } from 'astro/zod';
const inventory = defineCollection({
loader: file('src/data/inventory.json'),
schema: z.object({
make: z.string(),
model: z.string(),
year: z.number().int().min(1990),
price: z.number().positive(),
mileage: z.number().int().nonnegative(),
fuel: z.enum(['Petrol', 'Diesel', 'Hybrid', 'Electric']),
transmission: z.enum(['Manual', 'Automatic']),
body: z.string(),
status: z.enum(['available', 'reserved', 'sold']),
}),
});
export const collections = { inventory };
Now generate a page per vehicle, skipping anything sold:
---
// src/pages/cars/[id].astro
import { getCollection } from 'astro:content';
import VehicleSchema from '../../components/VehicleSchema.astro';
export async function getStaticPaths() {
const cars = await getCollection('inventory', ({ data }) => data.status !== 'sold');
return cars.map((car) => ({ params: { id: car.id }, props: { car } }));
}
const { car } = Astro.props;
const { data } = car;
const price = new Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD', maximumFractionDigits: 0 }).format(data.price);
---
<VehicleSchema car={car} />
<h1>{data.year} {data.make} {data.model}</h1>
<p class="price">{price}{data.status === 'reserved' && ' (reserved)'}</p>
<dl>
<dt>Mileage</dt><dd>{data.mileage.toLocaleString('en-US')} miles</dd>
<dt>Fuel</dt><dd>{data.fuel}</dd>
<dt>Transmission</dt><dd>{data.transmission}</dd>
<dt>Body</dt><dd>{data.body}</dd>
<dt>Stock number</dt><dd>{car.id}</dd>
</dl>
<a href={`/test-drive/?car=${car.id}`}>Book a test drive</a>
The filter callback on getCollection() keeps sold cars out of the build, so their pages return a 404 after the next deploy. Add a redirect from popular sold listings to the matching make page if you want to keep the traffic. The content loader reference covers file() options, and if your feed is an API rather than a file, our content layer loaders guide shows how to write a custom loader.
Generate a page for each make
Shoppers often search for a brand plus your town. Build a page per make from the same data:
---
// src/pages/makes/[make].astro
import { getCollection } from 'astro:content';
export async function getStaticPaths() {
const cars = await getCollection('inventory', ({ data }) => data.status !== 'sold');
const makes = [...new Set(cars.map((c) => c.data.make))];
return makes.map((make) => ({
params: { make: make.toLowerCase() },
props: { make, cars: cars.filter((c) => c.data.make === make) },
}));
}
const { make, cars } = Astro.props;
---
<h1>Used {make} cars for sale</h1>
<ul>
{cars.map(({ id, data }) => (
<li><a href={`/cars/${id}/`}>{data.year} {data.model}, {data.mileage.toLocaleString('en-US')} miles</a></li>
))}
</ul>
Our getStaticPaths guide explains params and props in more depth.
Add Car structured data
Schema.org’s Car type with an Offer tells search engines the vehicle, price and availability:
---
// src/components/VehicleSchema.astro
const { car } = Astro.props;
const { data } = car;
const schema = {
'@context': 'https://schema.org',
'@type': 'Car',
name: `${data.year} ${data.make} ${data.model}`,
brand: { '@type': 'Brand', name: data.make },
model: data.model,
vehicleModelDate: String(data.year),
fuelType: data.fuel,
vehicleTransmission: data.transmission,
mileageFromOdometer: { '@type': 'QuantitativeValue', value: data.mileage, unitCode: 'SMI' },
offers: {
'@type': 'Offer',
price: data.price,
priceCurrency: 'USD',
availability: data.status === 'available' ? 'https://schema.org/InStock' : 'https://schema.org/LimitedAvailability',
itemCondition: 'https://schema.org/UsedCondition',
},
};
---
<script type="application/ld+json" set:html={JSON.stringify(schema)} />
Our JSON-LD guide for Astro covers validation and combining this with AutoDealer business data.
Paid Astro automotive templates from our catalog
Our Transportation category holds 30 Astro themes, and more automotive themes sit in Professional Services and other categories. Each is a complete Astro 7 project with a live preview and full source in a private GitHub repository.
Meridian: a vehicle brand or marque
Meridian ($29) is a vehicle marque site that argues its engineering instead of just asserting it. Three model pages carry full specifications, an engineering section explains key design decisions, and there are Service, Journal and Reserve pages. It suits an EV maker, a specialist manufacturer or a dealer for a single brand.
Car Dealership 128 and Caranger: dealerships
Car Dealership 128 ($39) is designed for car dealers, dealerships and car listing sites, with Our Team, Testimonials, FAQ and three home layouts. Caranger ($39) presents a dealership’s handpicked stock, with several home layouts, team and blog pages.
Cruze and Carplus: luxury and used cars
Cruze ($39) is built for luxury car dealerships, with a Models section showing vehicles with detailed specs. Carplus ($39) is a used car theme for showcasing pre-owned stock, with service pages and three home layouts.
Carent: car rental
Carent ($39) is a car rental theme with car listings, individual vehicle pages and an FAQ, suited to luxury and city rentals.
AutoFix and CarRepair X: garages and repair shops
AutoFix ($39) is built for workshops and repair specialists, with Services, Mechanics and Pricing Tables pages. CarRepair X ($39) suits mechanics and auto garages, with Services, a Blog and three home layouts.
Avontiv: detailing businesses
Avontiv ($39) is built for car cleaning and detailing businesses, with service detail pages such as paint protection, pricing and several homepage variants.
How to choose
| Business | What matters most | Good starting point |
|---|---|---|
| Single-brand or EV maker | Model pages, specs, reservations | Meridian |
| Independent dealer | Stock pages, team, reviews | Car Dealership 128, Caranger |
| Luxury or used specialist | Vehicle specs, trust | Cruze, Carplus |
| Rental company | Fleet listings, rates | Carent |
| Garage or detailer | Services, pricing, booking | AutoFix, CarRepair X, Avontiv |
Whichever theme you pick, plan to replace its demo vehicle pages with the inventory pattern above so your stock comes from one data source.
FAQ
Is Astro a good choice for a car dealership website?
Yes, for most independent dealers. Astro builds each vehicle page as static HTML from your stock data, so pages load quickly and hosting is cheap. Rebuild when stock changes, either on a schedule or from a webhook. Very large groups with live stock across many sites may prefer server rendering for inventory.
How do I keep car inventory up to date on a static Astro site?
Export stock from your dealer management system to JSON, commit it or fetch it in a custom loader, and trigger a rebuild whenever it changes. Cloudflare Pages, Netlify and Vercel all support deploy hooks that a script or your stock system can call.
Can an Astro car dealer template handle finance applications?
Not by itself. Finance applications collect sensitive data and usually run through a finance provider’s own form or portal. Link to it from each vehicle page, and keep the Astro site to enquiries and test drive requests.
What pages does a car dealer website need?
Home, inventory with filters, one page per vehicle, make or body type pages, finance and trade-in if offered, about, reviews and contact with hours. A service department needs its own service and booking pages.
Are there free Astro car dealer templates?
Very few. Most developers adapt a general theme such as AstroWind and build inventory pages from a data file. Paid automotive themes cost more but ship vehicle, service and team pages designed for the niche.