From the course: Learning GitHub Pages
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Build a project - GitHub Tutorial
From the course: Learning GitHub Pages
Build a project
- [Instructor] Although we have Eleventy installed, it's not really a web project, so let's go ahead and modify our folder so that it's a real NPM project. I'm going to open up my terminal, I'm using hyper, but you can use either the terminal on the Mac, or Git Bash on a PC. And I'm going to make sure that I'm on the desktop and that I'm also in that folder. Now, from here I can run an NPM init - y command, and this will create a package.json with some defaults for me. Now, let's go ahead and open this up in visual studio code. You can see the package.json file, it has some basic information in it. I'm going to switch some of these things out. Mentally, I need to make sure that I create a couple of scripts, so instead of the test script, I'm going to issue a start script and it's going to run Eleventy with the serve option. This will give me a live reload server that I can use while I am developing my website. Now, I…
Contents
-
-
-
-
-
-
-
(Locked)
Eleventy static sites3m 41s
-
(Locked)
Build a project3m 50s
-
(Locked)
Set up a config file3m 54s
-
(Locked)
Add passthrough content3m 46s
-
(Locked)
Create Nunjucks templates6m 12s
-
(Locked)
Include repetitive content5m 40s
-
(Locked)
Expand Eleventy with plugins6m 44s
-
(Locked)
Publish your site8m 10s
-
(Locked)
-