The best Astro hotel template shows the rooms, rates and location clearly, loads large photos quickly on a phone, and sends guests to your booking engine in one tap so you keep more direct bookings. Astro suits hotels because the website itself is static content, while availability and payments stay in the booking system you already use.
We sell Astro themes, including hotel and resort ones, so weigh our picks accordingly. Below: what a hotel site needs, the free routes, two patterns for rooms and booking, and a short list from our catalog.
Key Takeaways
- A hotel website exists to win direct bookings. Rooms, photos, location and a booking button come first.
- Keep rooms in a content collection so each room type gets its own page with consistent details.
- Availability and payments belong to your booking engine; the Astro site links or posts to it.
- Photography is the heaviest asset. Import it through
astro:assetsso Astro serves resized WebP or AVIF.- Our Travel category holds 36 Astro themes, and around 20 themes across the catalog are built for hotels, resorts, villas and guesthouses.
What a hotel or resort website actually needs
Guests compare your site with the listing on a booking platform. To win the direct booking, the site must answer the same questions faster:
- Room pages. One page per room type with photos, size, bed configuration, occupancy and amenities.
- A booking widget or button on every page, ideally with dates, so the guest lands on live availability.
- Location. A map, directions from the airport or station, and what is nearby.
- Dining, spa and experiences if you have them. Resorts sell the stay as a package.
- Policies. Check-in and check-out times, cancellation, pets and children.
- Offers. Direct-booking perks are the main reason guests skip the platforms, so make them visible.
- Fast photos. A gallery of full-width images is the usual cause of slow hotel sites.
Our guide to building a hotel website with Astro covers the full page structure and build.
Free routes to an Astro hotel site
Free hotel-specific Astro themes are rare. Your realistic options:
Adapt a general theme
AstroWind is a free Tailwind CSS theme with hero, features, testimonial and FAQ sections. A features grid can become a rooms overview and the FAQ covers policies. You build room pages, the gallery and the booking form yourself.
Start from the minimal starter
A small guesthouse or B&B site might be five pages. 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 travel and hospitality themes from community authors. Check that each uses current APIs and that its image handling goes through astro:assets.
A rooms collection that works in any theme
Store each room type as a Markdown file with structured frontmatter, so every room page shows the same details in the same order. The image() helper validates that each photo exists and lets Astro optimise it:
// src/content.config.ts
import { defineCollection } from 'astro:content';
import { glob } from 'astro/loaders';
import { z } from 'astro/zod';
const rooms = defineCollection({
loader: glob({ pattern: '**/*.md', base: './src/content/rooms' }),
schema: ({ image }) =>
z.object({
name: z.string(),
sizeSqm: z.number(),
beds: z.string(),
maxGuests: z.number().int(),
fromPrice: z.number(),
amenities: z.array(z.string()),
cover: image(),
coverAlt: z.string(),
order: z.number().default(0),
}),
});
export const collections = { rooms };
---
// src/pages/rooms/[id].astro
import { getCollection, render } from 'astro:content';
import { Image } from 'astro:assets';
export async function getStaticPaths() {
const rooms = await getCollection('rooms');
return rooms.map((room) => ({ params: { id: room.id }, props: { room } }));
}
const { room } = Astro.props;
const { Content } = await render(room);
const { data } = room;
---
<h1>{data.name}</h1>
<Image src={data.cover} alt={data.coverAlt} widths={[640, 1024, 1600]} sizes="100vw" loading="eager" />
<ul>
<li>{data.sizeSqm} m²</li>
<li>{data.beds}</li>
<li>Up to {data.maxGuests} guests</li>
<li>From ${data.fromPrice} per night</li>
</ul>
<Content />
<ul>{data.amenities.map((a) => <li>{a}</li>)}</ul>
<a href={`https://booking.example.com/rooms/${room.id}`}>Check availability</a>
The same collection, sorted by order, feeds a rooms overview page and a “rooms” block on the home page. The content collections guide covers the image() helper and references. For more on dynamic routes, see our getStaticPaths guide.
Send guests to live availability with dates
Most booking engines accept check-in and check-out dates in the URL. A plain HTML form with method="get" builds that URL with no JavaScript at all:
---
// src/components/BookingBar.astro
---
<form action="https://booking.example.com/search" method="get" class="booking-bar">
<label>
Check in
<input type="date" name="checkin" required />
</label>
<label>
Check out
<input type="date" name="checkout" required />
</label>
<label>
Guests
<input type="number" name="adults" min="1" max="8" value="2" />
</label>
<button type="submit">Check availability</button>
</form>
Rename the field names to whatever your booking engine expects; most publish the parameter names in their documentation. Native date inputs give guests the phone’s own date picker, which is easier to use than most custom ones.
Paid Astro hotel templates from our catalog
Our Travel category holds 36 Astro themes. 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 property:
Aristo: boutique hotels
Aristo ($39) is a high-end theme for boutique hotels and resorts, with detailed room presentations, galleries and booking features, plus three home and three about page variants.
Castle Resort and Camelia: full-service hotels
Castle Resort ($39) covers Rooms and Suites, Amenities, Gallery, Local Attractions and a Make An Enquiry page. Camelia ($39) includes Stay, Suites, Dining, Spa and Wellness and a Book Now page. Both suit hotels that sell dining and facilities alongside rooms.
Bayan: resorts with restaurant and spa
Bayan ($24) is an elegant hotel and resort theme with Rooms, Restaurant, Restaurant Menu, Spa and Experiences pages. It is also one of the lower-priced hotel themes in the catalog.
Asatha: villas and wellness retreats
Asatha ($39) is built for resorts, private villas and wellness retreats, with Villas And Suites, Dining, Wellness and Packages pages. It sits in our Wellness category because retreats sell the experience as much as the room.
Bastion and Dehouse 128: rentals, guesthouses and B&Bs
Bastion ($39) is designed for holiday rentals and short-stay accommodation, with Property, Locale, Reviews and Journal pages. Dehouse 128 ($39) targets hotels and guesthouses, with Rooms, a room detail page and a Foods page, and suits B&Bs, chalets and hostels too.
How to choose
| Property | What matters most | Good starting point |
|---|---|---|
| Boutique hotel | Room detail, photography, direct booking | Aristo |
| Full-service hotel | Dining, facilities, enquiries | Castle Resort, Camelia |
| Resort or retreat | Packages, spa, experiences | Bayan, Asatha |
| Holiday rental or guesthouse | Property details, local area, reviews | Bastion, Dehouse 128 |
| Tight budget, developer on hand | Flexibility | AstroWind or the minimal starter |
Add Hotel structured data
Schema.org has a Hotel type with check-in times, amenities and star rating. A small component in the layout covers the basics:
---
// src/components/HotelSchema.astro
const schema = {
'@context': 'https://schema.org',
'@type': 'Hotel',
name: 'Harbour House Hotel',
url: Astro.site?.href,
telephone: '+44-1632-960123',
checkinTime: '15:00',
checkoutTime: '11:00',
petsAllowed: true,
address: {
'@type': 'PostalAddress',
streetAddress: '4 Quay Street',
addressLocality: 'Falmouth',
postalCode: 'TR11 3HH',
addressCountry: 'GB',
},
amenityFeature: [
{ '@type': 'LocationFeatureSpecification', name: 'Free WiFi', value: true },
{ '@type': 'LocationFeatureSpecification', name: 'Restaurant', value: true },
],
};
---
<script type="application/ld+json" set:html={JSON.stringify(schema)} />
Our JSON-LD guide for Astro shows how to validate it and combine it with other types.
FAQ
Is Astro a good choice for a hotel website?
Yes. A hotel site is mostly rooms, photos and policies, which Astro builds as static HTML with no JavaScript by default. It loads quickly, optimises photos at build time and hosts cheaply. Live availability and payments stay in your booking engine.
Can an Astro hotel template take bookings?
Not by itself. Astro themes are static sites, so the booking step runs in your booking engine. Link to it from each room page, embed its widget, or use a simple date form that sends guests to live availability.
How do I add new rooms to an Astro hotel theme?
If rooms live in a content collection, add a new Markdown file with the room’s details and photo, then rebuild. The rooms overview and the new room page update automatically.
What pages does a hotel website need?
Home, rooms overview, one page per room type, location, dining or facilities if you have them, offers, policies and contact. A gallery and a blog about the local area help with search.
Are there free Astro hotel templates?
Very few. Most developers adapt a general theme such as AstroWind and add room pages and a booking form. Paid hotel themes cost more but ship rooms, amenities, dining and enquiry pages already designed.