fix mistake with images in sitemap

This commit is contained in:
Rob Loranger 2019-08-01 18:13:04 -07:00
parent f02a241213
commit dd2a5840ec
No known key found for this signature in database
GPG Key ID: D6F1633A4F0903B8
1 changed files with 4 additions and 4 deletions

View File

@ -83,11 +83,11 @@ func handleViewSitemap(app *App, w http.ResponseWriter, r *http.Request) error {
{"lastmod", p.Updated}, {"lastmod", p.Updated},
} }
if len(p.Images) > 0 { if len(p.Images) > 0 {
imgs := stm.URL{} imgs := []stm.URL{}
for _, i := range p.Images { for _, i := range p.Images {
imgs = append(imgs, []interface{}{ imgs = append(imgs, stm.URL{
[]interface{}{"loc", i}, {"loc", i},
[]interface{}{"title", ""}, {"title", ""},
}) })
} }
u = append(u, []interface{}{"image", imgs}) u = append(u, []interface{}{"image", imgs})