aboutsummaryrefslogtreecommitdiffhomepage
path: root/identity
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2020-11-26 08:32:49 +0100
committerBjørn Erik Pedersen <[email protected]>2020-11-26 20:41:54 +0100
commite442cf30a215e33b49ce588a9098147282bd883f (patch)
tree2571d16dd2bb8baa28fb9ededbc527b4d6fa18ce /identity
parent7e223b3baaef68d6e6f99e28f162362c81deffba (diff)
downloadhugo-e442cf30a215e33b49ce588a9098147282bd883f.tar.gz
hugo-e442cf30a215e33b49ce588a9098147282bd883f.zip
Fix server rebuild issue with partials referenced from render hooks
Fixes #7990
Diffstat (limited to 'identity')
-rw-r--r--identity/identity.go11
1 files changed, 8 insertions, 3 deletions
diff --git a/identity/identity.go b/identity/identity.go
index 8fce16479..b002f34f0 100644
--- a/identity/identity.go
+++ b/identity/identity.go
@@ -64,13 +64,18 @@ type Identity interface {
// Manager manages identities, and is itself a Provider of Identity.
type Manager interface {
- IdentitiesProvider
- Provider
+ SearchProvider
Add(ids ...Provider)
- Search(id Identity) Provider
Reset()
}
+// SearchProvider provides access to the chained set of identities.
+type SearchProvider interface {
+ Provider
+ IdentitiesProvider
+ Search(id Identity) Provider
+}
+
// A PathIdentity is a common identity identified by a type and a path, e.g. "layouts" and "_default/single.html".
type PathIdentity struct {
Type string