You can improve it by separating design into separate files (say header, footer, etc). Doing things from shell is not very much different from doing things from browser.
You can use very simple template language with sed or awk (just replace keywords with actual values for example).
Alternative: just rewrite it to command some template engine (no, I do not have any recommendations).
Edit: Positive side is that it is a single file, so I can see your point. But as the projects as multiple files anyway, it is perhaps still worth a consideration.
I love this, I have been (passively) wanting to find something like this for ages (i.e. bash script, with minimal deps, to generate a nice gallery in HTML). Thank you!
One idea / suggestion I have would be to use Isotope for layout: http://isotope.metafizzy.co/ Then you'd basically be able to generate a mini Pinterest...
I think you've had this for ~20 years ... it was (is) called "gallery" and it was a perl/cgi script that basically everyone on the web used until ~2000 ...
10 comments
[ 4.1 ms ] story [ 35.1 ms ] threadYou can use very simple template language with sed or awk (just replace keywords with actual values for example).
Alternative: just rewrite it to command some template engine (no, I do not have any recommendations).
Edit: Positive side is that it is a single file, so I can see your point. But as the projects as multiple files anyway, it is perhaps still worth a consideration.
One idea / suggestion I have would be to use Isotope for layout: http://isotope.metafizzy.co/ Then you'd basically be able to generate a mini Pinterest...