Running 11ty with no configuration
To start, from within the cloned GitHub repository, open
project-1/chapter-1/start in your code editor. This project has a very basic HTML website. It has an
assets directory with CSS and images and an
about.html document with some basic structure and content. If you open
index.html in a browser, you’ll get a web page, but it won’t have any styles associated and the anchor to the About page won’t work. That’s because this page is expected to run on a server.
In order to get a local server, we’ll install and run 11ty.
First, all Node.js projects need a
package.json file. We can create one by running the following:
npm init -y