Bakery Website Template

A free bakery website template built with Eleventy (11ty) and Nunjucks that publishes as a static site, for independent bakeries, patisseries and cake makers. It covers a menu with prices, sizes and allergens, what is baked on each day with today marked, opening hours with an open-until line, celebration cakes with an enquiry form that knows the notice each size needs, a visit page and an FAQ, all edited in YAML.

by Light CloudFood and drink

Build a bakery website with Eleventy and YAML

Home page: a top bar with the address, 'Open until 3pm' and the phone number, the headline 'Sourdough, pastries and celebration cakes, baked every morning in York' beside a photo of sourdough loaves, and the hours, address, phone and prices
Home page: a top bar with the address, 'Open until 3pm' and the phone number, the headline 'Sourdough, pastries and celebration cakes, baked every morning in York' beside a photo of sourdough loaves, and the hours, address, phone and prices, on a phone

Features

  • A menu from one YAML file with prices or sizes, Vegan and Vegetarian labels and allergens from a fixed list, so a misspelt allergen stops the build
  • Daily bakes for each day of the week with today marked in UK time, oven times, and the week at a glance on the home page
  • An Open until 3pm or Opens Tuesday 7:30am line in the top bar of every page, from the hours in content/business.yaml
  • Celebration cakes with sizes, how many each serves, from prices, notice, flavours, extras, delivery area and deposit
  • A cake enquiry form that sets the earliest date for the size, refuses closed days, checks delivery postcodes and posts to a form endpoint or opens the email app
  • A visit page with an OpenStreetMap link, getting there on foot, by bus, car, train and bike, and step-free access
  • Bakery, Menu, Service, FAQPage and BreadcrumbList JSON-LD, an Open Graph card per page drawn with satori and sharp, sitemap.xml and /llms.txt
  • WCAG 2.2 AA in light and dark mode, checked with axe-core, plus unit and smoke tests for hours, cake notice, prices and JSON-LD

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: CAKE_FORM_ENDPOINT, a Formspree, Basin or similar form URL; without it the cake form opens the visitor's email app addressed to your cake email
  • Optional: SITE_URL, your public address for canonical links, sharing cards and the sitemap; without it the website in content/business.yaml is used

About

Every bakery detail lives in content/: business.yaml for the name, address, phone, hours, getting here and team, menu.yaml for items, prices and allergens, daily-bakes.yaml for what comes out of the oven each day, cakes.yaml for sizes, notice and delivery, and YAML for reviews, the FAQ and the privacy page. src/lib/content.js checks every file at build time, so a price that is not a number, a time written 7.30, a misspelt allergen or a daily bake naming an item not on the menu stops the build with the file and field named. York Artisan Bakery, its team, phone number and prices are made up, and the reviews on the home page are labelled samples to replace with real ones given with your customers' permission. Check every allergen against your own recipes before you publish, and replace the street, bus and parking details, which are plausible but were not checked on the ground. Today and open now use UK time (change TIME_ZONE in src/js/hours.js for a bakery elsewhere), and there are no holiday closures, so for Christmas change the hours and redeploy. The cake form checks notice and closed days only in the visitor's browser, so check the date when you reply to an enquiry.

FAQ

How do I make a website for my bakery?

Deploy this template, then edit the YAML files in content/: your name, address, phone number, opening hours, menu with prices and allergens, what you bake each day and your cake sizes. The site rebuilds on every push, and the build stops with the file and field named if something is wrong.

How do I show allergens on my bakery's online menu?

List them for each item in content/menu.yaml, from the fixed list in the file (wheat, rye, milk, eggs, almonds, sesame and so on). They appear under each item on the menu page and in llms.txt, and a misspelt allergen stops the build so it can never silently disappear.

How can customers order a celebration cake from my website?

The cake enquiry form only offers dates with enough notice for the size chosen, on days you are open, and checks delivery postcodes against your area. With nothing set it opens the customer's email app with the enquiry written out; put a Formspree, Basin or similar URL in CAKE_FORM_ENDPOINT to receive enquiries directly.

Can I use this template for a café, patisserie or doughnut shop?

Yes. Change the menu sections and items, the daily bakes, the cake sizes, wording and photos, and change the JSON-LD type in src/lib/schema.js from Bakery to CafeOrCoffeeShop or another FoodEstablishment.

Can I host this bakery website without Light Cloud?

Yes. Run npm run build and upload _site/ to any static host; every page is a real HTML file, so no SPA fallback is needed. Set the environment variables in the host's build settings.

Price
Free
Framework
Eleventy · JavaScript
Plan
Free
Updated