mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 06:17:45 +00:00
hubolib: Simplify map range
This commit is contained in:
1 parent
ff2498ee89
commit
0a0db9cd25
1 file changed
+1
-1
@@ -228,7 +228,7 @@ func (h *HugoSites) createMissingPages() error {
|
|||||||
tax := s.Taxonomies[plural]
|
tax := s.Taxonomies[plural]
|
||||||
foundTaxonomyPage := false
|
foundTaxonomyPage := false
|
||||||
foundTaxonomyTermsPage := false
|
foundTaxonomyTermsPage := false
|
||||||
for key, _ := range tax {
|
for key := range tax {
|
||||||
for _, p := range taxonomyPages {
|
for _, p := range taxonomyPages {
|
||||||
if p.sections[0] == plural && p.sections[1] == key {
|
if p.sections[0] == plural && p.sections[1] == key {
|
||||||
foundTaxonomyPage = true
|
foundTaxonomyPage = true
|
||||||
|
|||||||
Reference in new issue
Block a user