aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/site_new.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2023-05-17 09:59:57 +0200
committerBjørn Erik Pedersen <[email protected]>2023-05-17 22:13:29 +0200
commit5d857165fed4649c3aa639a1555a15b8b1c75bab (patch)
tree9eafd7d8b85ec4c9bc9a16c83172c3a2b1d57e41 /hugolib/site_new.go
parent0106cf1a6db73f76b7f26744fcee6ce7f41cdf07 (diff)
downloadhugo-5d857165fed4649c3aa639a1555a15b8b1c75bab.tar.gz
hugo-5d857165fed4649c3aa639a1555a15b8b1c75bab.zip
Deprecate site.Language.Params and some other fixes
Updates #10947
Diffstat (limited to 'hugolib/site_new.go')
-rw-r--r--hugolib/site_new.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/hugolib/site_new.go b/hugolib/site_new.go
index f449b857a..2b959a8da 100644
--- a/hugolib/site_new.go
+++ b/hugolib/site_new.go
@@ -132,6 +132,8 @@ func NewHugoSites(cfg deps.DepsCfg) (*HugoSites, error) {
return nil, err
}
+ langs.SetParams(language, conf.Params)
+
s := &Site{
conf: conf,
language: language,
@@ -411,6 +413,10 @@ func (s *Site) Author() map[string]any {
return s.conf.Author
}
+func (s *Site) Authors() page.AuthorList {
+ return page.AuthorList{}
+}
+
func (s *Site) Social() map[string]string {
return s.conf.Social
}
@@ -434,6 +440,14 @@ func (s *Site) Data() map[string]any {
return s.s.h.Data()
}
+func (s *Site) BuildDrafts() bool {
+ return s.conf.BuildDrafts
+}
+
+func (s *Site) IsMultiLingual() bool {
+ return s.h.isMultiLingual()
+}
+
func (s *Site) LanguagePrefix() string {
conf := s.s.Conf
if !conf.IsMultiLingual() {