Running 11ty with no configuration
While most sites you build with 11ty will require some amount of configuration, 11ty comes packaged with enough defaults to get you up and running without writing any 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 index.html
and 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.
Installing 11ty
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
Running this command will initialize this project as a Node.js...