mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
Use FEEDBACK instead of ERROR for empty home page warning
jww.ERROR.Println() seems to have become too verbose, making the warning message intended for new users a lot less readable.
This commit is contained in:
parent
ca0c67dc69
commit
57eebbf243
1 changed files with 6 additions and 6 deletions
|
@ -1969,14 +1969,14 @@ func (s *Site) renderAndWritePage(name string, dest string, d interface{}, layou
|
|||
if outBuffer.Len() == 0 {
|
||||
jww.WARN.Printf("%q is rendered empty\n", dest)
|
||||
if dest == "/" {
|
||||
jww.ERROR.Println("=============================================================")
|
||||
jww.ERROR.Println("Your rendered home page is blank: /index.html is zero-length")
|
||||
jww.ERROR.Println(" * Did you specify a theme on the command-line or in your")
|
||||
jww.ERROR.Printf(" %q file? (Current theme: %q)\n", filepath.Base(viper.ConfigFileUsed()), viper.GetString("Theme"))
|
||||
jww.FEEDBACK.Println("=============================================================")
|
||||
jww.FEEDBACK.Println("Your rendered home page is blank: /index.html is zero-length")
|
||||
jww.FEEDBACK.Println(" * Did you specify a theme on the command-line or in your")
|
||||
jww.FEEDBACK.Printf(" %q file? (Current theme: %q)\n", filepath.Base(viper.ConfigFileUsed()), viper.GetString("Theme"))
|
||||
if !viper.GetBool("Verbose") {
|
||||
jww.ERROR.Println(" * For more debugging information, run \"hugo -v\"")
|
||||
jww.FEEDBACK.Println(" * For more debugging information, run \"hugo -v\"")
|
||||
}
|
||||
jww.ERROR.Println("=============================================================")
|
||||
jww.FEEDBACK.Println("=============================================================")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue