The best Astro fitness template makes the class timetable, membership prices and a trial or booking button easy to find on a phone, and lets staff update the schedule without editing layout code. Free general Astro themes can be adapted for a gym, but very few are built for one, so a dedicated fitness theme with class, trainer and membership pages usually saves the most time.
We sell Astro themes, including gym and fitness ones, so weigh our picks accordingly. Below are the requirements, the free routes, a timetable pattern you can use in any theme, and a short list from our catalog.
Key Takeaways
- Gym visitors look for four things: the timetable, prices, location and a way to start a trial. Design the site around them.
- Keep classes and the weekly timetable in a data file so a schedule change is one edit.
- Free fitness-specific Astro themes are rare; general themes such as AstroWind work if you build the class pages yourself.
ExerciseGymstructured data with address and hours helps local search.- Our Wellness category holds 58 Astro themes, and around 20 themes across the catalog are built specifically for gyms, studios and trainers.
What a gym or fitness website actually needs
Fitness sites are local business sites with one twist: the schedule changes every week. The pages that matter:
- Class timetable. Readable on a phone, filterable by day, and current. An out-of-date timetable costs trust fast.
- Membership and pricing. Monthly, class packs, drop-in and any joining fee. Hidden pricing sends people to the gym down the road.
- Class pages. One page per class type explains intensity, duration and who it suits. These also rank for searches like “spin class near me”.
- Trainer profiles. Photos, qualifications and specialities. For personal trainers, this is the whole site.
- Location, hours and parking. In the footer of every page.
- A trial or booking call to action. Usually a link to your booking software or a short lead form.
A personal trainer’s site is smaller: services, pricing, results and a contact form. A boutique studio sits in between. Our guide to building a gym website with Astro walks through the full build.
Free routes to an Astro fitness site
Honest answer: the free Astro ecosystem is strong on blogs, docs and portfolios, and thin on fitness themes. Your realistic free options:
Adapt AstroWind
AstroWind is a free Tailwind CSS theme with hero, features, pricing, testimonial and FAQ sections. The pricing block maps neatly to memberships and the features grid can become a class list. You build the timetable, class pages and trainer pages yourself.
Start from the minimal starter
A trainer’s site is often four or five pages, so building from scratch is realistic for a developer:
# Terminal
npm create astro@latest -- --template minimal
Browse the official directory
The Astro themes directory has a few fitness and wellness themes from community authors. Check when each was last updated and whether it uses current APIs such as src/content.config.ts with loaders.
A timetable pattern that works in any theme
Put classes and the weekly schedule in one JSON file and let Astro’s file() loader validate it. Save this as src/data/timetable.json:
[
{ "id": "mon-0630-spin", "day": "Monday", "start": "06:30", "minutes": 45, "class": "Spin", "trainer": "Maya", "level": "All levels" },
{ "id": "mon-1800-strength", "day": "Monday", "start": "18:00", "minutes": 60, "class": "Strength", "trainer": "Jon", "level": "Intermediate" },
{ "id": "tue-0700-yoga", "day": "Tuesday", "start": "07:00", "minutes": 60, "class": "Yoga", "trainer": "Priya", "level": "Beginner" }
]
// src/content.config.ts
import { defineCollection } from 'astro:content';
import { file } from 'astro/loaders';
import { z } from 'astro/zod';
const days = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'] as const;
const timetable = defineCollection({
loader: file('src/data/timetable.json'),
schema: z.object({
day: z.enum(days),
start: z.string().regex(/^\d{2}:\d{2}$/),
minutes: z.number().int().positive(),
class: z.string(),
trainer: z.string(),
level: z.enum(['Beginner', 'Intermediate', 'Advanced', 'All levels']),
}),
});
export const collections = { timetable };
---
// src/pages/timetable.astro
import { getCollection } from 'astro:content';
const days = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'];
const sessions = (await getCollection('timetable')).sort((a, b) =>
a.data.start.localeCompare(b.data.start)
);
---
<h1>Class timetable</h1>
{days.map((day) => {
const today = sessions.filter((s) => s.data.day === day);
return today.length > 0 && (
<section id={day.toLowerCase()}>
<h2>{day}</h2>
<ul>
{today.map(({ data }) => (
<li>
<time>{data.start}</time> {data.class} with {data.trainer}
({data.minutes} min, {data.level})
</li>
))}
</ul>
</section>
);
})}
A typo in a day name or a time like 6:30 fails the build instead of reaching a member. The same collection can feed a “next three classes” block on the home page. See the content loader reference for every file() option.
Add ExerciseGym structured data
Most gym traffic is local. Schema.org has a specific ExerciseGym type, which tells search engines your address, hours and price range:
---
// src/components/GymSchema.astro
const schema = {
'@context': 'https://schema.org',
'@type': 'ExerciseGym',
name: 'Northside Strength Club',
url: Astro.site?.href,
telephone: '+1-555-0142',
priceRange: '$$',
address: {
'@type': 'PostalAddress',
streetAddress: '88 Mill Road',
addressLocality: 'Leeds',
postalCode: 'LS1 4AB',
addressCountry: 'GB',
},
openingHoursSpecification: [
{ '@type': 'OpeningHoursSpecification', dayOfWeek: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'], opens: '06:00', closes: '22:00' },
{ '@type': 'OpeningHoursSpecification', dayOfWeek: ['Saturday', 'Sunday'], opens: '08:00', closes: '18:00' },
],
};
---
<script type="application/ld+json" set:html={JSON.stringify(schema)} />
Set site in astro.config.mjs so Astro.site resolves. Our LocalBusiness schema guide covers the other local business fields.
Paid Astro fitness templates from our catalog
Our Wellness category holds 58 Astro themes covering gyms, yoga, pilates and spas. Each is a complete Astro 7 project with a live preview and full source in a private GitHub repository. A few that fit different kinds of fitness business:
Active-X: full-service gyms and health clubs
Active-X ($39) is designed for gyms, health clubs, personal trainers and nutritionists. Its pages include Group Classes, Personal Training, Nutrition, Meet The Team, Success Stories and FAQ, which covers most of the list above without extra work.
Fitova and Clemus: gyms with trainers and programs
Fitova ($39) is a gym and fitness theme with Program, Services, Trainers and Blog pages. Clemus ($39) suits fitness clubs, with Classes, Membership, Trainers and News pages. Choose Clemus if memberships are central to how you sell.
FitMind: studios with many class types
FitMind ($39) is built for fitness studios, with a separate page for each class: Cycle, Functional Training, Pilates, Stretching, TRX and Yoga. Per-class pages are useful for search and for explaining what each session involves.
Fit Trainer: personal trainers and coaches
Fit Trainer ($39) is designed for personal trainers, with About Me, Services, Pricing and Blog pages. It suits a one-person business that sells sessions and programs.
Climbr: climbing and bouldering gyms
Climbr ($39) is built for indoor climbing and bouldering gyms, with Climbing, Events, Our Coaches and Pricing pages, plus individual coach profiles.
Fitnero: a one-page gym site
Fitnero ($29) is a one-page dark theme for gyms and fitness centers. It is the fastest route if you only need a single page with classes, prices and contact details.
If you run a yoga or pilates studio rather than a gym, our Astro wellness themes guide covers that side of the category.
How to choose
| Business | What matters most | Good starting point |
|---|---|---|
| Large gym or health club | Timetable, memberships, many services | Active-X, Clemus |
| Boutique studio | Class pages, instructors, booking | FitMind, Fitova |
| Personal trainer | Services, results, pricing | Fit Trainer |
| Climbing gym | Events, coaching, day passes | Climbr |
| New gym, opening soon | One page with prices and contact | Fitnero or AstroWind |
Launch checklist for a fitness site
- Replace every demo class, price and trainer bio. Check qualifications with each trainer.
- Move the timetable into a data file and remove any hard-coded schedule from the theme.
- Compress photos with
astro:assetsand write alt text that describes the activity. - Test the trial or booking link on a phone.
- Add
ExerciseGymJSON-LD and validate it. - Deploy to a static host. The deployment docs cover Netlify, Vercel and GitHub Pages.
FAQ
Is Astro a good choice for a gym website?
Yes. A gym site is a set of mostly static pages that must load fast on mobile and be easy to update. Astro builds static HTML with no JavaScript by default and can keep the timetable in a typed data file, so changes are simple and hosting is cheap or free.
Can an Astro gym template handle class bookings?
Not on its own. Astro themes are static sites, so bookings and payments run through a booking provider. Link to it from each class or embed its widget on a booking page. Smaller studios sometimes use a simple form that posts to a form backend.
How do I update the class timetable in an Astro theme?
Keep the timetable in a JSON or YAML file, edit it, and push the change to Git. Cloudflare Pages, Netlify and Vercel rebuild automatically, so the new schedule is live within a few minutes.
What pages does a personal trainer website need?
A home page, services with prices, an about page with qualifications, results or testimonials, and a contact or booking page. A blog is optional but helps with local search over time.
Are there free Astro fitness templates?
A few exist in the community directory, but the selection is small. Many developers adapt a general theme such as AstroWind and add their own timetable and class pages. Paid fitness themes cost more but ship those pages already built.