-
Notifications
You must be signed in to change notification settings - Fork 34
Extract content from layout code #20
Description
Right now the way the content is laid out in different html files including the full layout means for every small change to, for example, the header, all the pages must also be modified one by one. This is obviously not scalable for the future, and makes any small change 10x harder than it could be.
I propose we:
- Extract the page "chrome" (header, footer, etc) to a layout file
- Extract the content section of the individual pages to individual files in a
pagessubfolder - Setup a simple build system with Gulp to put everything together to deploy
Setting up something like Gulp is fairly straightforward, but it does mean a bit of extra effort, particularly for anyone doing design changes, or deploying the website - nonetheless, these should be familiar processes for anyone doing front-end development already. Additionally, it's fairly trivial to then hook up a CI system like CircleCI or TravisCI to build the deployable artifacts.
For those merely editing content, these extra steps should not be necessary.
I can do all the initial heavy lifting, and help anyone that needs help with getting nodejs/npm/gulp setup on their end.
Cheers! 🐴