Hotel Website Template

A free hotel website template built with Astro and TypeScript that publishes as a static site, for small and boutique hotels, guest houses and B&Bs. It covers a page per room type with its price, a booking form that hands over to your booking engine or email, breakfast and the bar, offers with promo codes, location, policies and an FAQ, all edited in Markdown and YAML.

by Light CloudHospitality and travel

Build a hotel website with Astro and a booking engine link

Home page: a photo of an Old Town street, the headline 'Fourteen rooms on a quiet street off the Royal Mile' and a booking form with arrive and leave dates, adults and children
Home page: a photo of an Old Town street, the headline 'Fourteen rooms on a quiet street off the Royal Mile' and a booking form with arrive and leave dates, adults and children, on a phone

Features

  • One Markdown file per room type becomes its own page with photo, from-price, sleeps, size in square metres, beds, bathroom, view, cots, dogs and step-free access, plus a comparison table
  • A booking form with dates, adults, children, room and offer code that catches past dates and too many guests for the room, then opens your booking engine with the values filled in
  • With no booking engine set, the same form opens the guest's email app with a booking request, next to your phone number
  • Breakfast and the bar with serving times, the menu, dietary notes and bar plates with prices
  • Offers with promo codes, terms and an optional end date, dropped at the next build once expired, each opening the booking form with the code and room filled in
  • Directions by train, airport, coach and car with walking times, and policies for check-in, cancellation, the visitor levy, children, dogs and accessibility
  • Hotel, HotelRoom, Offer, FAQPage and BreadcrumbList JSON-LD, a sharing image per page made at build time, sitemap.xml and /llms.txt
  • WCAG 2.2 AA in light and dark mode, checked with axe-core, with one small script for the booking form and WebP images resized at build time

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.23.4 or later and npm
  • Optional: PUBLIC_BOOKING_URL, your booking engine's deep link with placeholders such as {arrive}, {depart} and {adults}; without it the booking form opens the guest's email app
  • Optional: SITE_URL, your public address for canonical links, the sitemap and sharing images

About

Every guest-facing detail lives in content/: hotel.yaml for the name, address, check-in times, booking link and amenities, one Markdown file per room type with its price, sleeps, size and bed, and YAML for breakfast and the bar, directions, offers, policies, the FAQ and photo alt text, all checked against schemas at build time. The booking form fills placeholders such as {arrive}, {depart}, {adults}, {room} and {promo} into your booking engine's deep link, which has only been tested with a made-up link format, so check it with a real booking before you go live. The site has no availability or payment of its own: live prices and availability come from your booking engine, or the request goes by email. The policies page includes Edinburgh's 5% Visitor Levy, checked on the council's website in November 2026; delete that section or replace it with your own area's tourist tax if you are not in Edinburgh, and rewrite the cancellation terms, charges and data notice, which are example text. Edinburgh Old Town Hotel, its rooms, prices and phone number are made up, and the photos are Unsplash stock to replace with your own rooms. It needs Node.js 22.23 or later because Astro 7 does, and builds into dist/.

FAQ

How do I make a website for my hotel?

Deploy this template, then edit the files in content/: your hotel's details, a file per room type with its price and photo, breakfast, directions, offers, policies and questions. Each file is plain text with comments, and the site rebuilds from them.

Can a hotel website take bookings without a booking engine?

Yes. With no booking engine link set, the booking form checks the dates and guests and opens the guest's email app with a booking request filled in, and your phone number sits next to it. Add your engine's link later and the same form sends guests straight to it.

How do I link my hotel website to my booking engine?

Put your booking engine's deep link in PUBLIC_BOOKING_URL or booking.url in content/hotel.yaml, with placeholders such as {arrive}, {depart}, {adults} and {promo} where the values go. The form fills them in from what the guest chose; test it with a real booking, because only a made-up link format has been tried.

Can my hotel website show live room availability?

Not on its own. The site is static and shows from-prices per night; live availability, rates and payment come from your booking engine, which the booking form opens with the guest's dates filled in.

What structured data should a hotel website have?

A Hotel node with the address, phone, check-in and check-out times, amenities and pets policy; a HotelRoom for each room type with occupancy, size and bed; an Offer with the price per night; plus FAQPage and BreadcrumbList. This template builds all of them from the content files.

Price
Free
Framework
Astro · JavaScript
Plan
Free
Updated