Code reuse with path adjustment


Log in

If you're a student, please log in, so you can get the most from this page.

Earlier, you made a site about two yummy things. Now make a similar site, about yucky things.

A good way to do it is to copy the folder you made earlier. Then change the bits you need.

Here's my site's home page:

Home page

I put three things. You can have two, if you want.

Put your pages about yucky things in the subfolder yucky-things. Here's my file tree:

File tree

Reuse the navbar and footer. For example, here's what happens if I change the text in footer.html:

Footer changed

Submit your URL as usual.

Where referenced