A minimalist bare-bones Eleventy-official starter project useful for demos/experiments with WebC and the Eleventy site generator (using the v3.0 release).
- Eleventy WebC plugin preconfigured:
- Includes the
<is-land>
WebC component ready for use. - Add your own
*.webc
files to the_components
folder.
- Includes the
- Using the new
js
front matter type for arbitrary JavaScript front matter - Simple WebC Eleventy Layout file with streamlined critical CSS and JS bundles (see
_includes/layouts/base.webc
)
- Make a copy of this code with one of these on the command line (both install into the current folder):
git clone https://github.com/11ty/eleventy-base-webc.git .
npx degit 11ty/eleventy-base-webc
- …or you can use the "Use this template" button on GitHub.
- Install the dependencies by running
npm install
- Run it with
npm start
(see the other commands inpackage.json
or on the CLI docs) - Navigate to
http://localhost:8080
in your web browser. - Edit
content/index.webc
to change content on the home page.
- Cloudflare Pages
- Netlify
- Learn more about deploying an Eleventy project to the web.