- 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
1 changed files with 3 additions and 0 deletions

View File

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