mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 18:15:45 +00:00
1 parent
7610844004
commit
45c69dd168
1 file changed
+3
-1
+3
-1
@@ -278,7 +278,9 @@ func init() {
|
||||
|
||||
// InitializeConfig initializes a config file with sensible default configuration flags.
|
||||
func InitializeConfig(subCmdVs ...*cobra.Command) error {
|
||||
hugolib.LoadGlobalConfig(source, cfgFile)
|
||||
if err := hugolib.LoadGlobalConfig(source, cfgFile); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
for _, cmdV := range append([]*cobra.Command{hugoCmdV}, subCmdVs...) {
|
||||
|
||||
|
||||
Reference in new issue
Block a user