3 ms·
It becomes more complicated as soon as a you have a sidebar with "Last articles" in which case you would need to edit each single HTML files to edit the sidebar
by NewEntryHN 6y ago
It becomes more complicated as soon as a you have a sidebar with "Last articles" in which case you would need to edit each single HTML files to edit the sidebar consistently. Even with a single archives page you need to think about updating the archive for each new article. Also Markdown is definitely more author-friendly than HTML, but that's more like an extra.
- frereubu 6y agoIf you're using Apache, which he said he was, you can just use server-side includes: https://httpd.apache.org/docs/current/mod/mod_include.html#element.include https://httpd.apache.org/docs/current/mod/mod_include.html#e...
- clarry 6y agoIn the distant past, we used client side includes. They were known as framesets.
- microcolonel 6y agoAnother option is to use cat and a shell script or Makefile, or I guess some people use m4.
- llimllib 6y agoI use a makefile that runs a short python script, very simple
- justinmeiners 6y agocat header > index.html cat page >> index.html cat footer >> index.html
- carapace 6y agocat header page footer > index.html ("cat" is short for "concatenate".) ;)
- justinmeiners 6y agoeven better! (although you may want some steps in between)