Starter templates
Eleventy Bookshop Starter
The Eleventy Starter offers a streamlined foundation for creating fast, modern websites using Eleventy's static site generation, enhanced with ready-to-use Bookshop components for CloudCannon.

A starting point for developers looking to build a website with Eleventy, using CloudCannon editable regions for visual editing.
Create your own copy, and start creating your own components to use in the CloudCannon CMS.
To try to cut down on setup time this starter template includes some commonly used features in CloudCannon.
This template is aimed at helping developers build sites quickly, rather than providing editors with a fully built editable site. If you are an editor looking for an already built template, have a look at CloudCannon's templates page.
See a demo version of this site.
Getting Started
To start using this template, go to the GitHub repository, and click Use this template to make your own copy.
Local Development
- Clone the repository
- At the root of the project, run
npm install, to install the node modules. - Run
npm start. Eleventy will generate and serve your site from a folder called_site.
CloudCannon skills for AI coding agents
If you build with an AI coding agent (Claude Code, Cursor, Copilot, etc.), install CloudCannon's agent skills. These teach your agent how CloudCannon configuration, editable regions, and snippets actually work, so it stops guessing.
Install all of them into this project:
npx skills add cloudcannon/agent-skills --all
Or pick the ones you need:
npx skills add cloudcannon/agent-skills --skill cloudcannon-visual-editing,cloudcannon-configuration
Available skills:
| Skill | Use it for |
|---|---|
cloudcannon-visual-editing | Adding Visual Editor support, setting up editable regions, debugging visual editing |
cloudcannon-configuration | Writing cloudcannon.config.yml — collections, inputs, structures, select data, collection URLs |
cloudcannon-snippets | Adding snippets to markdown content and configuring the Content Editor |
migrating-to-cloudcannon | Onboarding an existing SSG site to CloudCannon |
brainstorming | Exploring intent and design before a migration or larger change |
Useful flags:
-g/--global— install for your user instead of just this project.-l/--list— list the skills in the repo without installing.-a '*'— install to every supported agent, not just the detected one.
Skill files land in .agents/skills/, with agent-specific directories such as .claude/skills/ symlinked to them, and the installed versions recorded in skills-lock.json. Commit skills-lock.json so teammates can restore the same set with npx skills experimental_install. Run npx skills update to pull in newer versions, npx skills ls to see what's installed, and npx skills remove to drop them.
Features
- Editable regions
- Styling
- Blog with pagination & tags
- Data files
- Image Optimization
- Optimised for editing in CloudCannon
- SEO controls
- Font Awesome Icons
Editable regions
Editable regions let non-technical editors edit and build pages directly on the live preview in CloudCannon's Visual Editor.
Components are plain Liquid partials in src/_includes/components/. The @cloudcannon/editable-regions Eleventy plugin (wired up in .eleventy.js) marks parts of a component editable with data-editable attributes and re-renders them live as the editor types.
To create a new page-building component:
Add a Liquid partial in
src/_includes/components/, e.g.my-block.liquid. Mark editable parts withdata-editableattributes (text,image,array,component).Add a co-located
my-block.cloudcannon.structure-value.ymlnext to it, defining itslabel,icon,preview, defaultvalue(including a_type: components/my-blockdiscriminator), and any component-scoped_inputs. It's picked up automatically by the_structures.content_blocksglob incloudcannon.config.yml— no central edit needed.The page builder (
src/_includes/layouts/component-page.html) renderscontent_blocksas an editable array, so your new block is immediately available in the Add menu.
See BOOKSHOP-TO-EDITABLE-REGIONS.md for a full explanation of how the editable-regions setup works (including the migration this starter went through from Bookshop).
Styling
TailwindCSS or SCSS/CSS are both configured to be usable within this project.
Tailwind CSS
Use Tailwind to add utility classes to your HTML, allowing you to style your components without leaving your HTML. This can be used in combination with normal CSS and SCSS styling, leaving you to add styles to your site however you want.
To remove Tailwind CSS from the project:
- Remove the following packages from your
package.json:
"dependencies": {
"tailwindcss": "^x.x.xx"
}
Delete your
tailwind.config.mjsfile.Remove the
/src/assets/styles.tailwind.cssfile.Remove calls to
npm run tailwind:buildandnpm run tailwind:watch.Remove existing utility classes and replace them with SCSS/CSS.
Hot reloading
Any changes to styling within the project will cause your local server to reload and reflect the changes.
Markdown styles
The markdown toolbar has all the options supported in the rich text editor, along with stylings to make them work. See the CloudCannon Docs for more information.
Variables
Variables can be updated/added within /src/assets/styles/_variables.scss
Blog with pagination & tags
A blog section with tags and pagination is included.
Documentation, blog and other text heavy sections should replicate how the blog section is implemented in this template.
The blog pages in this template allow for snippets and have some preconfigured options. Snippets allow you to use HTML components throughout your markdown text.
A common layout, with changing markdown content is favored for these kinds of text heavy pages, rather than using editable-region components - which are defined and managed in your markdown pages frontmatter.
These text heavy pages will be edited in CloudCannon's content editor, rather than the visual editor used for building pages with editable-region components.
Drafts
Drafts (content that exsits but is unpublished and not included within collections) are supported within the site. If you want to have drafts enabled, on your main site within CloudCannon you will need to set the variable ELEVENTY_ENV=production and remove
drafts:
hidden: true
in the cloudcannon.config.yml file.
Data files
Demonstrates using data files to:
- Populate select inputs in CloudCannon. This is powerful for allowing editors to make styling changes to the page, within a set design system populated by an editable data file. This is done with the icons and colors data files.
- Set sitewide values such as the overall site SEO settings.
- Control header and footer data to allow editors control over navigation.
Image Optimization
11ty Image is used in the two placeholder components in this template, it has been created as a subcomponent in /src/_includes/components/image.liquid.
The image component will process an image in your src/assets/images folder, and output an optimized image, like below:
<picture>
<source type="image/avif" srcset="/optimized/0L8bYGwHxv-640.avif 640w, /optimized/0L8bYGwHxv-960.avif 960w, /optimized/0L8bYGwHxv-1280.avif 1280w" sizes="(max-width: 640px) 320px, (max-width: 960px) 500px, (max-width: 1280px) 640px">
<source type="image/webp" srcset="/optimized/0L8bYGwHxv-640.webp 640w, /optimized/0L8bYGwHxv-960.webp 960w, /optimized/0L8bYGwHxv-1280.webp 1280w" sizes="(max-width: 640px) 320px, (max-width: 960px) 500px, (max-width: 1280px) 640px">
<img alt="An image" class="c-image" loading="eager" decoding="async" src="/optimized/0L8bYGwHxv-640.jpeg" width="1280" height="701" srcset="/optimized/0L8bYGwHxv-640.jpeg 640w, /optimized/0L8bYGwHxv-960.jpeg 960w, /optimized/0L8bYGwHxv-1280.jpeg 1280w" sizes="(max-width: 640px) 320px, (max-width: 960px) 500px, (max-width: 1280px) 640px">
</picture>
Optimised for editing in CloudCannon
Cloudcannon Configuration
The placeholder components show how to configure your components to control inputs and previews in CloudCannon.
A cloudcannon.config.yml file has been provided with some configuration that starts to show what can be done to configure the CMS.
This template also demonstrates how to set uploads paths on an input level, to allow for different asset types to go to different folders.
Schemas
Shows how to set up schemas in CloudCannon to allow for non-technical editors to create new pages, with preset frontmatter and content. Schemas can be defined on a collection level, allowing your new blog pages to be different to your new landing pages. This allows for your text heavy blog/docs pages to be built and edited in the content editor, while your other pages can be built with editable regions in the visual editor.
SEO controls
SEO inputs come set up and configured to allow editors to control SEO on a page-by-page, and sitewide basis.
- Favicon and site SEO details are set in the Data / Site section
- SEO details can also be set in pages for page specific details.
Font Awesome Icons
A Font Awesome Icon free icon pack is included, without having to set up your own kit in Font Awesome.
To add more icons:
- Go to the Font Awesome icon list
- Pick a free icon
- Add a new entry to the icons file in the data collection,
data/icons.json. This file populates the icon dropdown list used for icons in the placeholder components. Add a name, and the class that FA gives you, eg.fa-solid fa-bookmark.
If you want to add a custom icon, follow the example of the CloudCannon icon used in this template.
Remove Font Awesome Icons
- Remove the following packages from your
package.json:
"dependencies": {
"@fortawesome/fontawesome-free": "^6.6.0",
}
Remove
/src/_includes/components/icon.liquidRemove any references to the icon component from other components
Remove
/src/data/icons.jsonRemove any select inputs that were using the icon
icon:
type: select
options:
values: data.icons
- Remove icons from your defined data in
cloudcannon.config.yml
data_config:
icons:
path: data/icons.json