Barber Shop Website Template

A free barber shop website template built with Astro and TypeScript that publishes as a static site, for independent barbers who take walk-ins and bookings. The home page shows whether the shop is open, the walk-in status and the barbers in today, and the site adds a price list with times, barber profiles, a gallery of cuts, reviews, gift vouchers, find-us details and an FAQ, all edited in YAML and Markdown.

by Light CloudBeauty and wellness

Build a barber shop website with Astro and YAML

Home page: the heading 'Walk-in barber shop in Partick, Glasgow' on a dark green band, a Today board with 'Open now until 7:30pm', 'Walk-ins welcome', the barbers in today, the address and phone, then Book a time and Call the shop buttons above a photo of the shop floor
Home page: the heading 'Walk-in barber shop in Partick, Glasgow' on a dark green band, a Today board with 'Open now until 7:30pm', 'Walk-ins welcome', the barbers in today, the address and phone, then Book a time and Call the shop buttons above a photo of the shop floor, on a phone

Features

  • Today board above the fold: Open now worked out in the shop's time zone, the walk-in status and which barbers are in today
  • Walk-in status set in one line of YAML: welcome, short wait, busy or appointments only, with an optional wait time and note
  • Book buttons go to Booksy, Fresha, Square Appointments, Setmore, Timely or the salon booking app, or to a call-or-walk-in page
  • Price list from one YAML file with times and from prices: haircuts, fades, beards, hot towel shaves, kids, students and OAPs
  • Barbers as Markdown files with specialities, a week strip of the days they work and Book with buttons
  • Find us with subway, train, bus and bike directions, Blue Badge parking, step-free access and holiday hours
  • HairSalon JSON-LD with the full price list as an OfferCatalog, plus FAQPage, BreadcrumbList, sitemap.xml and /llms.txt
  • WCAG 2.2 AA in light and dark mode, checked with axe-core on every page, with unit tests and a smoke test of the built site

Tech stack

What you need

  • Free plan: it builds to a static site, which the Free plan hosts with no limit on sites
  • To run it locally: Node.js 22.12 or later and npm
  • Optional: PUBLIC_BOOKING_URL, your booking page link; without it Book opens a /book/ page with call, walk-in and directions
  • Optional: SITE_URL, your public address for canonical links, the sitemap and sharing images

About

Every shop detail lives in content/: shop.yaml for the name, address, hours, closures, walk-in status, booking link and find-us details, services.yaml for the price list, one Markdown file per barber, and YAML for the gallery, reviews and FAQ. Astro content collections check every file at build time, so hours written as 9-5.30 or a misspelt day stops the build with the file and field named. The same hours code writes the hours table, the opening hours in the HairSalon structured data and the Open now line, so they never disagree. Start by replacing Partick Barbers in content/shop.yaml, delete the sample reviews, and put your photos in src/assets/images/. It builds with npm run build into dist/, and each push to your copy redeploys, so changing a price or the walk-in status is a commit.

FAQ

How do I make a website for my barber shop?

Deploy this template, then edit the files in content/: your shop's name, address, phone, opening hours, prices, barbers and photos. Each file has comments explaining every field, and the site rebuilds from them.

How do I show "walk-ins welcome" or a wait time on my barber website?

Set walkIns.status in content/shop.yaml to welcome, short-wait, busy or appointments-only, and optionally a wait such as "about 40 minutes". The home page, the booking page and llms.txt show it after the next build or deploy.

Can I connect Booksy or Fresha to my barber shop website?

Yes. Paste your Booksy, Fresha, Square Appointments, Setmore or Timely booking link into booking.url in content/shop.yaml, or set PUBLIC_BOOKING_URL, and every Book button goes there.

Which schema.org type should a barber shop use?

schema.org has no BarberShop type, so this template marks the shop up as a HairSalon, the closest local business type, with the price list, opening hours and holiday hours. The name, description and services say "barber", which is what people search for.

Can I host this barber website without Light Cloud?

Yes. Run npm run build and upload dist/ to any static host such as Netlify, Cloudflare Pages or nginx, and point the not-found page at dist/404.html. There is no Light Cloud code and no server adapter.

Price
Free
Framework
Astro · JavaScript
Plan
Free
Updated