Here is an idea: blog-cli could just check if there is a blog-cli property in the package.json that has a property pathToPosts or something and if yes it could just use that.
Multiple blogs could be suported by adding multiple paths in there that have an alias name as a property or something:
I'm a passionate learner and sharer. I always try to give back to the developer community. I create mobile and Web applications by day. Not Batman by night, in case you wondered :)
I think I'd need to see an implementation of the idea to really get it.
I have been working on adding the ability to work with more than one template and to set a template path, I have it working but I need to clean it up a little and test for when it's not specified.
I'm a passionate learner and sharer. I always try to give back to the developer community. I create mobile and Web applications by day. Not Batman by night, in case you wondered :)
Here is an idea: blog-cli could just check if there is a
blog-cli
property in the package.json that has a propertypathToPosts
or something and if yes it could just use that.Multiple blogs could be suported by adding multiple paths in there that have an alias name as a property or something:
And then there should be a command line flag that should allow you to switch between blogs, like:
blog --switch-to work-blog
for example.I think I'd need to see an implementation of the idea to really get it.
I have been working on adding the ability to work with more than one template and to set a template path, I have it working but I need to clean it up a little and test for when it's not specified.
Once I have it done I'll submit it as a pull request, my fork is here
github.com/GrfxGuru/blog-cli
I made an Electron app based on blog-cli now: kahlillechelt.com/2019/05/07/annou...
Great! I will be taking a look at it.