summaryrefslogtreecommitdiffstats
path: root/hugolib/site.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-05-17 13:12:49 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-05-17 22:13:29 +0200
commit05542130ba0205d3d8d14575b7e49ed42a855b9a (patch)
treebb94df8ba48b349bdcb18d254af51a38722bef13 /hugolib/site.go
parent5251f015bfff40b49f92f8855834d5682f925860 (diff)
Handle transient errors in config loading etc.
As in: Get the Kubernetes site to build with the new Hugo version. Updates #10947
Diffstat (limited to 'hugolib/site.go')
-rw-r--r--hugolib/site.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/hugolib/site.go b/hugolib/site.go
index b055cf690..301d66dac 100644
--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -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")