mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-24 21:56:05 +02:00
@@ -917,10 +917,12 @@ func (s *Site) processPartial(config *BuildCfg, init func(config *BuildCfg) erro
|
||||
logger = helpers.NewDistinctFeedbackLogger()
|
||||
)
|
||||
|
||||
cachePartitions := make([]string, len(events))
|
||||
var cachePartitions []string
|
||||
|
||||
for i, ev := range events {
|
||||
cachePartitions[i] = resources.ResourceKeyPartition(ev.Name)
|
||||
for _, ev := range events {
|
||||
if assetsFilename := s.BaseFs.Assets.MakePathRelative(ev.Name); assetsFilename != "" {
|
||||
cachePartitions = append(cachePartitions, resources.ResourceKeyPartitions(assetsFilename)...)
|
||||
}
|
||||
|
||||
if s.isContentDirEvent(ev) {
|
||||
logger.Println("Source changed", ev)
|
||||
|
Reference in New Issue
Block a user