diff options
author | Joe Mooring <joe.mooring@veriphor.com> | 2024-03-12 08:18:23 -0700 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2024-03-13 17:34:42 +0200 |
commit | dc6a292133bf3249f1741a7624075b0782b16f84 (patch) | |
tree | ee11263c7a02b7f68e33185851511c08bb14c843 /resources | |
parent | 4f92f949eaf8c9827a758b3caadc672e0335480b (diff) |
common/hugo: Rename IsMultiHost and IsMultiLingual
hugo.IsMultiHost => hugo.IsMultihost
hugo.IsMultiLingual => hugo.IsMultilingual
Closes #12232
Diffstat (limited to 'resources')
-rw-r--r-- | resources/page/page_matcher_test.go | 2 | ||||
-rw-r--r-- | resources/page/site.go | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/resources/page/page_matcher_test.go b/resources/page/page_matcher_test.go index 3ab68e8af..dfb479d5e 100644 --- a/resources/page/page_matcher_test.go +++ b/resources/page/page_matcher_test.go @@ -180,7 +180,7 @@ func (c testConfig) IsMultihost() bool { return c.multihost } -func (c testConfig) IsMultiLingual() bool { +func (c testConfig) IsMultilingual() bool { return c.multilingual } diff --git a/resources/page/site.go b/resources/page/site.go index d9f3d967b..8f268091f 100644 --- a/resources/page/site.go +++ b/resources/page/site.go @@ -126,7 +126,7 @@ type Site interface { // BuildDrafts is deprecated and will be removed in a future release. BuildDrafts() bool - // Deprecated: Use hugo.IsMultiLingual instead. + // Deprecated: Use hugo.IsMultilingual instead. IsMultiLingual() bool // LanguagePrefix returns the language prefix for this site. @@ -292,7 +292,7 @@ func (s *siteWrapper) BuildDrafts() bool { return s.s.BuildDrafts() } -// Deprecated: Use hugo.IsMultiLingual instead. +// Deprecated: Use hugo.IsMultilingual instead. func (s *siteWrapper) IsMultiLingual() bool { return s.s.IsMultiLingual() } @@ -453,7 +453,7 @@ func (s testSite) BuildDrafts() bool { return false } -// Deprecated: Use hugo.IsMultiLingual instead. +// Deprecated: Use hugo.IsMultilingual instead. func (s testSite) IsMultiLingual() bool { return false } |