diff --git a/main.go b/main.go index 564f294..c0d49b7 100644 --- a/main.go +++ b/main.go @@ -108,7 +108,11 @@ func main() { Title string VidoesUrl string Items []db.Item - }{title, videosUrl, jd.Items} + }{title, videosUrl, nil} + //reverse order + for _, item := range jd.Items { + td.Items = append([]db.Item{item}, td.Items...) + } if err := tmpl.Execute(w, td); err != nil { log.Panic(err) }