mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
@@ -135,6 +135,8 @@ type Site interface {
|
||||
// Deprecated: Use .Site.Home.OutputFormats.Get "rss" instead.
|
||||
RSSLink() template.URL
|
||||
|
||||
maps.StoreProvider
|
||||
|
||||
// For internal use only.
|
||||
// This will panic if the site is not fully initialized.
|
||||
// This is typically used to inform the user in the content adapter templates,
|
||||
@@ -327,6 +329,10 @@ func (s *siteWrapper) RSSLink() template.URL {
|
||||
return s.s.RSSLink()
|
||||
}
|
||||
|
||||
func (s *siteWrapper) Store() *maps.Scratch {
|
||||
return s.s.Store()
|
||||
}
|
||||
|
||||
// For internal use only.
|
||||
func (s *siteWrapper) ForEeachIdentityByName(name string, f func(identity.Identity) bool) {
|
||||
s.s.(identity.ForEeachIdentityByNameProvider).ForEeachIdentityByName(name, f)
|
||||
@@ -491,6 +497,10 @@ func (s testSite) RSSLink() template.URL {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (s testSite) Store() *maps.Scratch {
|
||||
return maps.NewScratch()
|
||||
}
|
||||
|
||||
func (s testSite) CheckReady() {
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user