forb

Forb is static blog generator inspired by jekyll
git clone https://noulin.net/git/forb.git
Log | Files | Refs | README | LICENSE

commit a544ba2885da536e7d0cead7ee225aef5f39fbc8
parent d332ea32138677cefc9c2c8dfbbbb1c783cea52f
Author: rlp <rlp@xps2>
Date:   Fri, 17 Nov 2023 14:59:21 +0100

add post command (same as publish)

forb.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Diffstat:
Mforb.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/forb.c b/forb.c @@ -148,7 +148,7 @@ int main(int ARGC, char** ARGV) { help(); XSuccess; } - elif (eqG(ARGV[1], "publish")) { + elif (eqG(ARGV[1], "publish") or eqG(ARGV[1], "post")) { // copy draft to post dir if (ARGC < 3) { logE("publish failed. Missing path, usage:\n" @@ -475,6 +475,7 @@ void help(void) { " without argument --- generate the blog in the "siteDir" directory, the posts in "PostsDir" are moved to "publishedDir"\n" " new [title] --- copy default template or when running in a forb directory, create a draft post\n" " publish PATH --- publish a draft, the draft file is moved from the "draftsDir" directory to the "PostsDir" directory and today's date is added to the file name and in the post\n" + " post PATH --- publish a draft, the draft file is moved from the "draftsDir" directory to the "PostsDir" directory and today's date is added to the file name and in the post\n" " update PATH --- move post in "publishedDir" to "PostsDir", edit the post and generate the blog. The update date is added to the post and the first publish date is kept\n" ); }