mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
common/hugo: Rename IsMultiHost and IsMultiLingual
hugo.IsMultiHost => hugo.IsMultihost hugo.IsMultiLingual => hugo.IsMultilingual Closes #12232
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
4f92f949ea
commit
dc6a292133
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user