A static-site-generator composed of a single Makefile. Everything is self contained, including the documentation (rendered: https://n-peugnet.github.io/makesite).
In the root config, rename layout variable into pagelayout and add taglayout.
Make tags use the same layout as pages.
Solution 2. requires the tag function to be changed to match the same variable as the page in the layout.
Solution 1. gives more freedom as one can still choose the same layout for both pages and tags.
With solution 1. I could still later make the variables of the tag layout to match the ones of the page layout so that both layouts are fully compatibles. Also, both page and tag could use the same replacement function.
There are 2 possibilities:
layout
variable intopagelayout
and addtaglayout
.Solution 2. requires the tag function to be changed to match the same variable as the page in the layout. Solution 1. gives more freedom as one can still choose the same layout for both pages and tags.
With solution 1. I could still later make the variables of the tag layout to match the ones of the page layout so that both layouts are fully compatibles. Also, both page and tag could use the same replacement function.