mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-25 22:00:58 +02:00
Allow creating home pages from content adapters
* Allow "" (empty string) or "/" to represent the home page path. * Be a little more lenient about path validation.
This commit is contained in:
@@ -675,7 +675,7 @@ params:
|
||||
|
||||
params["iscjklanguage"] = pcfg.IsCJKLanguage
|
||||
|
||||
if err := pcfg.Validate(false); err != nil {
|
||||
if err := pcfg.Init(false); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user