- avoid empty category pages

This commit is contained in:
Benjamin Schoch 2022-08-30 16:21:44 +02:00 committed by Avelino
parent c78c475e27
commit a1367b83b0

View File

@ -96,6 +96,9 @@ func makeObjById(selector string, s *goquery.Selection) (obj *Object) {
} }
links = append(links, link) links = append(links, link)
}) })
if len(links) == 0 {
return
}
obj = &Object{ obj = &Object{
Slug: slug.Generate(s.Text()), Slug: slug.Generate(s.Text()),
Title: s.Text(), Title: s.Text(),