mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-22 21:42:50 +02:00
committed by
Bjørn Erik Pedersen
parent
ec8b767fa6
commit
06bac57ab0
@@ -107,6 +107,7 @@ type GetPageProvider interface {
|
||||
// GitInfoProvider provides Git info.
|
||||
type GitInfoProvider interface {
|
||||
GitInfo() *gitmap.GitInfo
|
||||
Codeowners() []string
|
||||
}
|
||||
|
||||
// InSectionPositioner provides section navigation.
|
||||
|
@@ -194,6 +194,10 @@ func (p *nopPage) GitInfo() *gitmap.GitInfo {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *nopPage) Codeowners() []string {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *nopPage) HasMenuCurrent(menuID string, me *navigation.MenuEntry) bool {
|
||||
return false
|
||||
}
|
||||
|
@@ -252,6 +252,10 @@ func (p *testPage) GitInfo() *gitmap.GitInfo {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *testPage) Codeowners() []string {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *testPage) HasMenuCurrent(menuID string, me *navigation.MenuEntry) bool {
|
||||
panic("not implemented")
|
||||
}
|
||||
|
Reference in New Issue
Block a user