Is it possible to update the footer on all pages of a static website by editing 1 html file?
For example, I built a static website with 5 pages (with 4 html files and one CSS). Right now, to update the footer I have to edit footer code on all 4 html files separately. Is there an easier way to do this?
Here is the website:
Thanks for any help
In pseudo code, something like this:
Thanks for the suggestion. I haven’t learned JS yet, but that’s the next module.
There should be some other techniques, but probably you need to engineer that before creating the site. For example, you can have head = body =footer as 3 different files, and run a concatenate using bash, or some other tool.
Also maybe pug has some solution, but I don’t know pug.
The site looks nice though…