mirror of
https://github.com/gohugoio/hugo.git
synced 2025-09-01 22:42:45 +02:00
@@ -252,6 +252,10 @@ type PageWithoutContent interface {
|
||||
maps.Scratcher
|
||||
RelatedKeywordsProvider
|
||||
|
||||
// GetTerms gets the terms of a given taxonomy,
|
||||
// e.g. GetTerms("categories")
|
||||
GetTerms(taxonomy string) Pages
|
||||
|
||||
DeprecatedWarningPageMethods
|
||||
}
|
||||
|
||||
|
@@ -174,6 +174,10 @@ func (p *nopPage) GetParam(key string) interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *nopPage) GetTerms(taxonomy string) Pages {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *nopPage) GitInfo() *gitmap.GitInfo {
|
||||
return nil
|
||||
}
|
||||
|
@@ -222,6 +222,10 @@ func (p *testPage) GetParam(key string) interface{} {
|
||||
panic("not implemented")
|
||||
}
|
||||
|
||||
func (p *testPage) GetTerms(taxonomy string) Pages {
|
||||
panic("not implemented")
|
||||
}
|
||||
|
||||
func (p *testPage) GetRelatedDocsHandler() *RelatedDocsHandler {
|
||||
return relatedDocsHandler
|
||||
}
|
||||
|
Reference in New Issue
Block a user