mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
@@ -37,6 +37,7 @@ type Site interface {
|
||||
ServerPort() int
|
||||
Title() string
|
||||
Sites() Sites
|
||||
Current() Site
|
||||
Hugo() hugo.Info
|
||||
BaseURL() template.URL
|
||||
Taxonomies() any
|
||||
@@ -82,6 +83,10 @@ func (t testSite) Sites() Sites {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (t testSite) Current() Site {
|
||||
return t
|
||||
}
|
||||
|
||||
func (t testSite) IsServer() bool {
|
||||
return false
|
||||
}
|
||||
|
Reference in New Issue
Block a user