Fix Data in multisites

Updates #2309
This commit is contained in:
Bjørn Erik Pedersen
2016-08-11 18:26:45 +02:00
parent 93717aac5c
commit bbfebdea43
2 changed files with 13 additions and 8 deletions

View File

@@ -373,9 +373,12 @@ func (h *HugoSites) setupTranslations(master *Site) {
}
}
for i := 1; i < len(h.Sites); i++ {
h.Sites[i].AllPages = h.Sites[0].AllPages
}
}
// Pull over the collections from the master site
for i := 1; i < len(h.Sites); i++ {
h.Sites[i].AllPages = h.Sites[0].AllPages
h.Sites[i].Data = h.Sites[0].Data
}
if len(h.Sites) > 1 {