From dd2a5840ec4f408b84495cb81d208c1801d0052e Mon Sep 17 00:00:00 2001 From: Rob Loranger Date: Thu, 1 Aug 2019 18:13:04 -0700 Subject: [PATCH] fix mistake with images in sitemap --- sitemap.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sitemap.go b/sitemap.go index e4d3457..4dfd953 100644 --- a/sitemap.go +++ b/sitemap.go @@ -83,11 +83,11 @@ func handleViewSitemap(app *App, w http.ResponseWriter, r *http.Request) error { {"lastmod", p.Updated}, } if len(p.Images) > 0 { - imgs := stm.URL{} + imgs := []stm.URL{} for _, i := range p.Images { - imgs = append(imgs, []interface{}{ - []interface{}{"loc", i}, - []interface{}{"title", ""}, + imgs = append(imgs, stm.URL{ + {"loc", i}, + {"title", ""}, }) } u = append(u, []interface{}{"image", imgs})