eleventy-base-webc
eleventy-base-webc copied to clipboard
A minimalist bare-bones starter project using Eleventy and WebC.
trafficstars
eleventy-base-webc
A minimalist bare-bones Eleventy-official starter project useful for demos/experiments with WebC and the Eleventy site generator (using the v3.0 release).
Features
- Eleventy WebC plugin preconfigured:
- Includes the
<is-land>WebC component ready for use. - Add your own
*.webcfiles to the_componentsfolder.
- Includes the
- Using the new
nodefront matter type for arbitrary JavaScript front matter (vianode-retrieve-globals) - Simple WebC Eleventy Layout file with streamlined critical CSS and JS bundles (see
_includes/layouts/base.webc)
Get Started
- 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.jsonor on the CLI docs) - Navigate to
http://localhost:8080in your web browser. - Edit
content/index.webcto change content on the home page.
Demo
- Cloudflare Pages
- Netlify
- Learn more about deploying an Eleventy project to the web.