mirror of
https://github.com/avelino/awesome-go.git
synced 2024-11-07 16:33:40 +00:00
items -> links
This commit is contained in:
parent
839fcc0627
commit
1bd37bb9ac
4
main.go
4
main.go
@ -25,7 +25,7 @@ type Category struct {
|
|||||||
Title string
|
Title string
|
||||||
Slug string
|
Slug string
|
||||||
Description string
|
Description string
|
||||||
Items []Link
|
Links []Link
|
||||||
}
|
}
|
||||||
|
|
||||||
// Source files
|
// Source files
|
||||||
@ -254,7 +254,7 @@ func makeCategoryByID(selector string, doc *goquery.Document) (*Category, error)
|
|||||||
Slug: slug.Generate(selCatHeader.Text()),
|
Slug: slug.Generate(selCatHeader.Text()),
|
||||||
Title: selCatHeader.Text(),
|
Title: selCatHeader.Text(),
|
||||||
Description: selDescr.Text(),
|
Description: selDescr.Text(),
|
||||||
Items: links,
|
Links: links,
|
||||||
}
|
}
|
||||||
|
|
||||||
return true
|
return true
|
||||||
|
2
tmpl/cat-tmpl.html
vendored
2
tmpl/cat-tmpl.html
vendored
@ -81,7 +81,7 @@
|
|||||||
<i><a href="/#contents" alt="back to content menu" title="back to content menu">🗺️ back to content menu</a></i>
|
<i><a href="/#contents" alt="back to content menu" title="back to content menu">🗺️ back to content menu</a></i>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
{{range .Items}}
|
{{range .Links}}
|
||||||
<li><a href="{{.Url}}?utm_campaign=awesomego&utm_medium=referral&utm_source=awesomego" alt="Go to {{.Title}} link" title="Go to {{.Title}} link">{{.Description}}</a></li>
|
<li><a href="{{.Url}}?utm_campaign=awesomego&utm_medium=referral&utm_source=awesomego" alt="Go to {{.Title}} link" title="Go to {{.Title}} link">{{.Description}}</a></li>
|
||||||
{{end}}
|
{{end}}
|
||||||
</ul>
|
</ul>
|
||||||
|
Loading…
Reference in New Issue
Block a user