@@ -738,15 +738,15 @@ type pathChange struct {
738738 // The path to the changed file.
739739 p * paths.Path
740740
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
743743
744744 // If true, this is a directory.
745745 isDir bool
746746}
747747
748748func (p pathChange ) isStructuralChange () bool {
749- return p .delete || p .isDir
749+ return p .structural || p .isDir
750750}
751751
752752func (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
912912 }
913913 }
914914
915- addedOrChangedContent = append (addedOrChangedContent , pathChange {p : pathInfo , delete : delete , isDir : isDir })
915+ addedOrChangedContent = append (addedOrChangedContent , pathChange {p : pathInfo , structural : delete , isDir : isDir })
916916
917917 case files .ComponentFolderLayouts :
918918 tmplChanged = true
@@ -1033,6 +1033,16 @@ func (h *HugoSites) processPartialFileEvents(ctx context.Context, l logg.LevelLo
10331033 handleChange (id , false , true )
10341034 }
10351035
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+
10361046 resourceFiles := h .fileEventsContentPaths (addedOrChangedContent )
10371047
10381048 changed := & WhatChanged {
0 commit comments