mirror of
https://github.com/facundoolano/jorge.git
synced 2024-12-27 21:58:50 +01:00
more docs
This commit is contained in:
parent
b2fe886e8b
commit
616dce5080
1 changed files with 4 additions and 0 deletions
|
@ -44,6 +44,8 @@ var DEFAULT_ORG_DIRECTIVES string = `
|
||||||
|
|
||||||
const FILE_RW_MODE = 0777
|
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 {
|
func Init(projectDir string) error {
|
||||||
if err := ensureEmptyProjectDir(projectDir); err != nil {
|
if err := ensureEmptyProjectDir(projectDir); err != nil {
|
||||||
return err
|
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 {
|
func Post(root string, title string) error {
|
||||||
config, err := config.Load(root)
|
config, err := config.Load(root)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue