KMulji / NYT-Website

A website for House of Hope(NYT)
0 stars 0 forks source link

Deduplicate code into a template #7

Closed KMulji closed 2 years ago

KMulji commented 2 years ago

What is the best way to de-duplicate the code and have common features such as footer, navbar separated

KMulji commented 2 years ago

@peterstory I managed to create a layout and was able to move the header and navigation bar in the layout file. I then was able to load the home page and about page content in the {{content}}. Do you think this is sufficient for now? Should I decide which parts of the home page and about page I want them to edit, or should I move on and make the donate page (which I will work on tomorrow).

peterstory commented 2 years ago

As long as you've moved all the duplicated HTML code to the template file, that's great! I don't think it's necessary to make the pages easy for non-programmers to edit yet.

KMulji commented 2 years ago

This has been done by using the jekyll layouts