diff options
Diffstat (limited to 'hugolib/content_map.go')
-rw-r--r-- | hugolib/content_map.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/hugolib/content_map.go b/hugolib/content_map.go index 85300e3db..23b74e1c7 100644 --- a/hugolib/content_map.go +++ b/hugolib/content_map.go @@ -93,8 +93,8 @@ func (r *resourceSource) GetIdentity() identity.Identity { return r.path } -func (r *resourceSource) ForEeachIdentity(f func(identity.Identity) bool) { - f(r.GetIdentity()) +func (r *resourceSource) ForEeachIdentity(f func(identity.Identity) bool) bool { + return f(r.GetIdentity()) } func (r *resourceSource) Path() string { @@ -142,14 +142,15 @@ func (n resourceSources) GetIdentity() identity.Identity { return nil } -func (n resourceSources) ForEeachIdentity(f func(identity.Identity) bool) { +func (n resourceSources) ForEeachIdentity(f func(identity.Identity) bool) bool { for _, r := range n { if r != nil { if f(r.GetIdentity()) { - return + return true } } } + return false } func (cfg contentMapConfig) getTaxonomyConfig(s string) (v viewName) { |