mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-29 03:52:13 -05:00
hugolib: Remove unused slice
This commit is contained in:
parent
d30e845485
commit
3011f36c27
1 changed files with 0 additions and 5 deletions
|
@ -613,7 +613,6 @@ func (h *HugoSites) renderCrossSitesArtifacts() error {
|
||||||
// createMissingPages creates home page, taxonomies etc. that isnt't created as an
|
// createMissingPages creates home page, taxonomies etc. that isnt't created as an
|
||||||
// effect of having a content file.
|
// effect of having a content file.
|
||||||
func (h *HugoSites) createMissingPages() error {
|
func (h *HugoSites) createMissingPages() error {
|
||||||
var newPages pageStatePages
|
|
||||||
|
|
||||||
for _, s := range h.Sites {
|
for _, s := range h.Sites {
|
||||||
if s.isEnabled(page.KindHome) {
|
if s.isEnabled(page.KindHome) {
|
||||||
|
@ -626,7 +625,6 @@ func (h *HugoSites) createMissingPages() error {
|
||||||
if len(homes) == 0 {
|
if len(homes) == 0 {
|
||||||
home = s.newPage(page.KindHome)
|
home = s.newPage(page.KindHome)
|
||||||
s.workAllPages = append(s.workAllPages, home)
|
s.workAllPages = append(s.workAllPages, home)
|
||||||
newPages = append(newPages, home)
|
|
||||||
} else {
|
} else {
|
||||||
home = homes[0]
|
home = homes[0]
|
||||||
}
|
}
|
||||||
|
@ -637,7 +635,6 @@ func (h *HugoSites) createMissingPages() error {
|
||||||
// Will create content-less root sections.
|
// Will create content-less root sections.
|
||||||
newSections := s.assembleSections()
|
newSections := s.assembleSections()
|
||||||
s.workAllPages = append(s.workAllPages, newSections...)
|
s.workAllPages = append(s.workAllPages, newSections...)
|
||||||
newPages = append(newPages, newSections...)
|
|
||||||
|
|
||||||
taxonomyTermEnabled := s.isEnabled(page.KindTaxonomyTerm)
|
taxonomyTermEnabled := s.isEnabled(page.KindTaxonomyTerm)
|
||||||
taxonomyEnabled := s.isEnabled(page.KindTaxonomy)
|
taxonomyEnabled := s.isEnabled(page.KindTaxonomy)
|
||||||
|
@ -670,7 +667,6 @@ func (h *HugoSites) createMissingPages() error {
|
||||||
n := s.newPage(page.KindTaxonomyTerm, plural)
|
n := s.newPage(page.KindTaxonomyTerm, plural)
|
||||||
n.getTaxonomyNodeInfo().TransferValues(n)
|
n.getTaxonomyNodeInfo().TransferValues(n)
|
||||||
s.workAllPages = append(s.workAllPages, n)
|
s.workAllPages = append(s.workAllPages, n)
|
||||||
newPages = append(newPages, n)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -704,7 +700,6 @@ func (h *HugoSites) createMissingPages() error {
|
||||||
n := s.newTaxonomyPage(info.term, info.plural, info.termKey)
|
n := s.newTaxonomyPage(info.term, info.plural, info.termKey)
|
||||||
info.TransferValues(n)
|
info.TransferValues(n)
|
||||||
s.workAllPages = append(s.workAllPages, n)
|
s.workAllPages = append(s.workAllPages, n)
|
||||||
newPages = append(newPages, n)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue