From 616dce5080f7ac6edfc8b94d376f9b5d456eab4e Mon Sep 17 00:00:00 2001 From: facundoolano Date: Wed, 21 Feb 2024 12:47:26 -0300 Subject: [PATCH] more docs --- commands/commands.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/commands/commands.go b/commands/commands.go index 4c7a181..e4024e0 100644 --- a/commands/commands.go +++ b/commands/commands.go @@ -44,6 +44,8 @@ var DEFAULT_ORG_DIRECTIVES string = ` const FILE_RW_MODE = 0777 +// Initialize a new jorge project in the given directory, +// prompting for basic site config and creating default files. func Init(projectDir string) error { if err := ensureEmptyProjectDir(projectDir); err != nil { return err @@ -100,6 +102,8 @@ func Init(projectDir string) error { }) } +// Create a new post template in the given site, with the given title, +// with pre-filled front matter. func Post(root string, title string) error { config, err := config.Load(root) if err != nil {