This is a question looking for advice. My/our non-profit website distributing a free pdf physics textbook was started over 20 years ago. The site consists of about 80 static html pages that are coded and edited by hand with the help of a text editor and are uploaded via ftp. It is done on OSX.
I'd like to simplify the maintenance of the html pages, to keep them consistent. (Uploading works well and needs no special tool. A version tracking tool is also not necessary. A big website development system like Typo3 is also not needed.)
After 20 years, many software tools arose that did not exist at the time. What advice would you give to minimize maintenance of 80 html pages? No large overhaul and no big extension of the website is planned. At most one page a year is added.
Would you keep using an editor? Which one?
1a. An editor that can make use of HTML code snippets?
1b. An editor that can use HTML code includes?
Should one use a template engine? Which of the 200 different ones?
- Should one use a development environment?
- Should one use content management system?
- Should one use use an online website development tool?
Answer. Many people have emailed answers with excellent advice.
The simplest solution, one that needs no installation of SW at all, appears to be (1b), the use of an HTML editor that uses code includes. Alpha is an example of such an editor, found at https://alphacocoa.sourceforge.io/ , but there are many others. They also allow to update a whole folder of html files at once, after the includes have been changed.
Code snippets (1a.) are too simple to be helpful. Template editors/engines (2.) are the next possibility and also useful.
Development environments (3.) are similar to template engines, but usually for other languages, and do not need to be taken into consideration. CMS (4.) are too heavy. Online tools (5.) are too inflexible.
Answer 2 (final). It took only a few hours of work to clean up all 80 html pages using the method (1b). The advice to go for that method was the right one.