A free gym website template built with Astro and TypeScript that publishes as a static site, for independent gyms, fitness studios and personal training studios. It covers a live open and staffed-hours line, a free day pass form, memberships with a comparison table that works on phones, a class timetable filtered by day and class type, a page per class, personal trainers, facilities, corporate memberships and an FAQ, all edited in YAML and Markdown.
by Light CloudFitness and sport


Every gym detail lives in content/: gym.yaml for the name, address, opening and staffed hours, bank holidays, booking and joining links, memberships.yaml for prices, timetable.yaml for one line per weekly class, one Markdown file per class and per trainer, and YAML for facilities, personal training, reviews and the FAQ. At build time Astro checks that every timetable line points at a real class and coach, so a typo stops the build with the file and field named. The same hours code writes the hours tables, the ExerciseGym structured data and the live staffed-now line, so they never disagree. Start by replacing Newcastle Fitness Studio in content/gym.yaml, delete the sample reviews and put your photos in src/assets/images/. Each push to your copy redeploys, so adding a class or changing a price is a commit.
Deploy this template, then edit the files in content/: your gym's name, address and hours, memberships and prices, the weekly class timetable, classes and coaches. Each file is plain text with comments on every field, and the site rebuilds from them.
Write one line per weekly class in content/timetable.yaml with the day, time, class, coach and room. The site builds a timetable visitors can filter by day and class type, a page per class with its sessions, and Event structured data with a weekly schedule.
Yes. Paste your booking page link into booking.url in content/gym.yaml or the PUBLIC_BOOKING_URL environment variable, and every Book button goes there. A single class can have its own bookingUrl.
Yes. Set open24h: false in content/gym.yaml and the staffed hours become the opening hours everywhere: the live "Open now until 9pm" line, the hours tables and the structured data.
Yes. Run npm run build and upload dist/ to any static host; every page is a real HTML file, such as dist/classes/spin/index.html, so no SPA fallback is needed. Set the environment variables in the host's build settings.