mirror of
https://github.com/avelino/awesome-go.git
synced 2024-11-07 16:33:40 +00:00
- avoid empty category pages
This commit is contained in:
parent
c78c475e27
commit
a1367b83b0
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user