A free café and coffee shop website template built with Astro and TypeScript that publishes as a static site, for independent cafés, coffee shops and small roasters. It covers opening hours with a live Open now pill, a menu with sizes, milk options and dietary labels, events with their own pages, the beans and roasting story, wholesale and catering enquiries, order ahead, gift cards, directions and an FAQ, all edited in YAML and Markdown.
by Light CloudFood and drink


Every café fact lives in content/: cafe.yaml for the name, address, hours, closures, house rules and ordering links, one YAML file each for drinks, food and cakes, coffees.yaml for the beans on the shelf, and Markdown for events and page text. Astro content collections check every file against a schema at build time, so a time written as 5.30pm or a missing price stops the build with the file and field named. The same code in src/lib/hours.ts writes the hours table, the opening hours in the structured data and the Open now pill, so they never disagree. Start by replacing York Coffee House in content/cafe.yaml and the photos in content/images/. It builds with npm run build into dist/, and each push to your copy redeploys, so adding an event or changing a price is a commit.
Use this template: change the name, address, hours and menu in the YAML files in content/, replace the photos in content/images/, and deploy. You get a static site on your own domain, with no monthly website builder fee and no plugins to update.
The template outputs schema.org CafeOrCoffeeShop and Menu structured data with your address, coordinates, opening hours, holiday closures, menu items, sizes and prices. Set SITE_URL to your domain, deploy, and submit your sitemap.xml in Google Search Console, and keep your Google Business Profile hours the same as content/cafe.yaml.
Add a Markdown file to content/events/ with a title, a list of dates, start and end times and a price. Each event gets its own page with Event structured data, so it can appear in Google's event listings, and dates in the past drop off on their own.
Yes, by linking to an ordering service. Set order.url in content/cafe.yaml to your Square Online, Slerp or Toast ordering page and every Order ahead button goes there; without one, the button opens a page that explains how to order by phone.
Set PUBLIC_ENQUIRY_ENDPOINT to a Formspree or similar form endpoint and the form posts to it, and the service forwards each enquiry to your inbox. Without it, the button opens the visitor's own email app with the enquiry filled in and addressed to wholesaleEmail.