mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-14 20:33:59 +02:00
Now support for config files as yaml, json or toml
This commit is contained in:
6
main.go
6
main.go
@@ -26,13 +26,9 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
const (
|
||||
cfgFiledefault = "config.yaml"
|
||||
)
|
||||
|
||||
var (
|
||||
baseUrl = flag.String("b", "", "hostname (and path) to the root eg. http://spf13.com/")
|
||||
cfgfile = flag.String("c", cfgFiledefault, "config file (default is path/config.yaml)")
|
||||
cfgfile = flag.String("c", "", "config file (default is path/config.yaml|json|toml)")
|
||||
checkMode = flag.Bool("k", false, "analyze content and provide feedback")
|
||||
draft = flag.Bool("d", false, "include content marked as draft")
|
||||
help = flag.Bool("h", false, "show this help")
|
||||
|
Reference in New Issue
Block a user