DEV Community

Mct5330
Mct5330

Posted on

Eleventy-lab

Starting

The first thing I did was make a new local directory using the mkdir command. Then npm init -y is used to create a blank starting file. One video I found that was really helpful guided me through a lot of this lab: https://www.youtube.com/watch?v=-dM6AmNmMFA&list=LL&index=2. Additional last of the syntax and command help I also found here: https://www.11ty.dev/docs/getting-started/

for some reason at the time of posting this I keep getting an odd error that doesn't let me upload to the local host website:
Image description

But anyway once you install the plugin and and input your information for your post:

Image description
you use the commands npx @11ty/eleventy to upload the files, nix @11ty/eleventy --serve to publish to a server then go to http://localhost:8080 to view your post.

Top comments (0)