mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 20:17:17 +00:00
Proper handling of 404 page return value
This commit is contained in:
1 parent
7468292c4e
commit
5e14af957a
1 file changed
+3
-1
+3
-1
@@ -539,7 +539,9 @@ func (s *Site) RenderHomePage() error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
err = s.WritePublic("404.html", x)
|
err = s.WritePublic("404.html", x)
|
||||||
return err
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in new issue
Block a user