@@ -738,15 +738,15 @@ type pathChange struct {
738
738
// The path to the changed file.
739
739
p * paths.Path
740
740
741
- // If true, this is a delete operation ( a delete or a rename).
742
- delete bool
741
+ // If true, this is a structural change (e.g. a delete or a rename).
742
+ structural bool
743
743
744
744
// If true, this is a directory.
745
745
isDir bool
746
746
}
747
747
748
748
func (p pathChange ) isStructuralChange () bool {
749
- return p .delete || p .isDir
749
+ return p .structural || p .isDir
750
750
}
751
751
752
752
func (h * HugoSites ) processPartialRebuildChanges (ctx context.Context , l logg.LevelLogger , config * BuildCfg ) error {
@@ -912,7 +912,7 @@ func (h *HugoSites) processPartialFileEvents(ctx context.Context, l logg.LevelLo
912
912
}
913
913
}
914
914
915
- addedOrChangedContent = append (addedOrChangedContent , pathChange {p : pathInfo , delete : delete , isDir : isDir })
915
+ addedOrChangedContent = append (addedOrChangedContent , pathChange {p : pathInfo , structural : delete , isDir : isDir })
916
916
917
917
case files .ComponentFolderLayouts :
918
918
tmplChanged = true
@@ -1033,6 +1033,16 @@ func (h *HugoSites) processPartialFileEvents(ctx context.Context, l logg.LevelLo
1033
1033
handleChange (id , false , true )
1034
1034
}
1035
1035
1036
+ for _ , id := range changes {
1037
+ if id == identity .GenghisKhan {
1038
+ for i , cp := range addedOrChangedContent {
1039
+ cp .structural = true
1040
+ addedOrChangedContent [i ] = cp
1041
+ }
1042
+ break
1043
+ }
1044
+ }
1045
+
1036
1046
resourceFiles := h .fileEventsContentPaths (addedOrChangedContent )
1037
1047
1038
1048
changed := & WhatChanged {
0 commit comments