fix: Config loading from file

This commit is contained in:
Manuel Rüger
2025-06-06 13:45:21 +02:00
parent 58cdd5608f
commit bf542ab684
3 changed files with 60 additions and 62 deletions

View File

@@ -143,7 +143,7 @@ func processFile(
}
if meta.Title == "" {
fatalErrorHandler.Handle(nil, "page title is not set ('Title' header is not set and '--title-from-h1' option and 'h1_title' config is not set or there is no H1 in the file)")
fatalErrorHandler.Handle(nil, "page title is not set ('Title' header is not set and '--title-from-h1' option and 'h1-title' config is not set or there is no H1 in the file)")
return nil
}
}
@@ -481,7 +481,7 @@ func ConfigFilePath() string {
if err != nil {
log.Fatal(err)
}
return filepath.Join(fp, "mark")
return filepath.Join(fp, "mark.toml")
}
func SetLogLevel(cmd *cli.Command) error {