mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-16 20:53:59 +02:00
Handle transient errors in config loading etc.
As in: Get the Kubernetes site to build with the new Hugo version. Updates #10947
This commit is contained in:
@@ -273,6 +273,10 @@ func (s *Site) Language() *langs.Language {
|
||||
return s.language
|
||||
}
|
||||
|
||||
func (s *Site) Languages() langs.Languages {
|
||||
return s.h.Configs.Languages
|
||||
}
|
||||
|
||||
func (s *Site) isEnabled(kind string) bool {
|
||||
if kind == kindUnknown {
|
||||
panic("Unknown kind")
|
||||
|
Reference in New Issue
Block a user