Adding the new command and the create package

This commit is contained in:
spf13 2014-05-02 01:06:01 -04:00
parent 08c30b6e44
commit 28ffb92b36
3 changed files with 217 additions and 0 deletions

View file

@ -62,6 +62,7 @@ func AddCommands() {
HugoCmd.AddCommand(check)
HugoCmd.AddCommand(benchmark)
HugoCmd.AddCommand(convertCmd)
HugoCmd.AddCommand(newCmd)
}
func init() {
@ -92,10 +93,12 @@ func InitializeConfig() {
viper.RegisterAlias("taxonomies", "indexes")
viper.SetDefault("MetadataFormat", "toml")
viper.SetDefault("DisableRSS", false)
viper.SetDefault("ContentDir", "content")
viper.SetDefault("LayoutDir", "layouts")
viper.SetDefault("StaticDir", "static")
viper.SetDefault("ArchetypeDir", "archetypes")
viper.SetDefault("PublishDir", "public")
viper.SetDefault("DefaultLayout", "post")
viper.SetDefault("BuildDrafts", false)