items -> links

This commit is contained in:
Kirill Zhuravlev 2023-02-15 00:49:25 +01:00 committed by Avelino
parent 839fcc0627
commit 1bd37bb9ac
No known key found for this signature in database
GPG Key ID: B345B4D52E98180A
2 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@ type Category struct {
Title string
Slug string
Description string
Items []Link
Links []Link
}
// Source files
@ -254,7 +254,7 @@ func makeCategoryByID(selector string, doc *goquery.Document) (*Category, error)
Slug: slug.Generate(selCatHeader.Text()),
Title: selCatHeader.Text(),
Description: selDescr.Text(),
Items: links,
Links: links,
}
return true

2
tmpl/cat-tmpl.html vendored
View File

@ -81,7 +81,7 @@
<i><a href="/#contents" alt="back to content menu" title="back to content menu">🗺️ back to content menu</a></i>
<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>
{{end}}
</ul>