A minimalist bare-bones Eleventy-official starter project useful for demos/experiments with WebC and the Eleventy site generator (using the v2.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
- Adds a
javascript
front matter type for arbitrary JS 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.
Deploy this Eleventy site in just a few clicks on these services:
- Get your own Eleventy web site on Netlify
- If you run Eleventy locally you can drag your
_site
folder todrop.netlify.com
to upload it without usinggit
. - Read more about Deploying an Eleventy project to the web.