cfenollosa / bashblog

A single Bash script to create blogs. Download, run, write, done!
1.66k stars 228 forks source link

Idea: configurable file extensions and output paths #145

Open dertuxmalwieder opened 7 years ago

dertuxmalwieder commented 7 years ago

I am currently evaluating bashblog which seems to be the perfect solution for my current use case: basically, a hand-written PHP website (please don't judge me, it was the right choice this time ;-)) which has everything but a blog section because this was still much less work than retro-fitting one of the ~ 500 available static CMSs.

While playing with the .config file, I noticed two missing features. Let me suggest them:

  1. Configurable file extensions. My website has a PHP header which can not be used by bashblog because I can't generate PHP files. As there is no real reason for that, I would like to have a way to replace .html by (e.g.) .php.
  2. Configurable output paths. My HTML (or PHP :-)) files are publicly readable for obvious reasons. Right now, bb.sh seems to enforce to be in the same folder as well. It should be possible to replace ./ by some/folder/ with a .config setting.

What do you think?