mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-27 22:09:53 +02:00
@@ -261,7 +261,15 @@ type PageWithoutContent interface {
|
||||
// Helper methods
|
||||
ShortcodeInfoProvider
|
||||
compare.Eqer
|
||||
|
||||
// Scratch returns a Scratch that can be used to store temporary state.
|
||||
// Note that this Scratch gets reset on server rebuilds. See Store() for a variant that survives.
|
||||
maps.Scratcher
|
||||
|
||||
// Store returns a Scratch that can be used to store temporary state.
|
||||
// In contrast to Scratch(), this Scratch is not reset on server rebuilds.
|
||||
Store() *maps.Scratch
|
||||
|
||||
RelatedKeywordsProvider
|
||||
|
||||
// GetTerms gets the terms of a given taxonomy,
|
||||
|
@@ -418,6 +418,10 @@ func (p *nopPage) Scratch() *maps.Scratch {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *nopPage) Store() *maps.Scratch {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *nopPage) RelatedKeywords(cfg related.IndexConfig) ([]related.Keyword, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
@@ -498,6 +498,10 @@ func (p *testPage) Scratch() *maps.Scratch {
|
||||
panic("not implemented")
|
||||
}
|
||||
|
||||
func (p *testPage) Store() *maps.Scratch {
|
||||
panic("not implemented")
|
||||
}
|
||||
|
||||
func (p *testPage) RelatedKeywords(cfg related.IndexConfig) ([]related.Keyword, error) {
|
||||
v, err := p.Param(cfg.Name)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user